8000 [3.12] gh-120048: Make `test_imaplib` faster (GH-120050) by miss-islington · Pull Request #120070 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.12] gh-120048: Make test_imaplib faster (GH-120050) #120070

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 4, 2024

Conversation

miss-islington
Copy link
Contributor
@miss-islington miss-islington commented Jun 4, 2024

The test_imaplib was taking 40+ minutes in the refleak build bots because
the tests waiting on a client self._setup() was creating a client that
prevented progress until its connection timed out, which scaled with the
global timeout.

We should set connect=False for the tests that don't want _setup() to
create a client.

(cherry picked from commit 710cbea)

Co-authored-by: Sam Gross colesbury@gmail.com
Co-authored-by: Serhiy Storchaka storchaka@gmail.com

The `test_imaplib` was taking 40+ minutes in the refleak build bots because
the tests waiting on a client `self._setup()` was creating a client that
prevented progress until its connection timed out, which scaled with the
global timeout.

We should set `connect=False` for the tests that don't want `_setup()` to
create a client.

(cherry picked from commit 710cbea)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
@miss-islington miss-islington requested a review from a team as a code owner June 4, 2024 18:59
@bedevere-app bedevere-app bot added the tests Tests in the Lib/test dir label Jun 4, 2024
@colesbury colesbury enabled auto-merge (squash) June 4, 2024 18:59
@colesbury colesbury merged commit 210cd98 into python:3.12 Jun 4, 2024
28 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news tests Tests in the Lib/test dir
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants
0