Skip to content

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

Merged
colesbury merged 1 commit into
python:3.12from
miss-islington:backport-710cbea-3.12
Jun 4, 2024
Merged

[3.12] gh-120048: Make test_imaplib faster (GH-120050)#120070
colesbury merged 1 commit into
python:3.12from
miss-islington:backport-710cbea-3.12

Conversation

@miss-islington
Copy link
Copy Markdown
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
@miss-islington miss-islington deleted the backport-710cbea-3.12 branch January 2, 2026 17:47
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