]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.12] gh-120048: Make `test_imaplib` faster (GH-120050) (#120070)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Jun 2024 19:25:17 +0000 (21:25 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2024 19:25:17 +0000 (19:25 +0000)
commit210cd98f75f14cc19c1517cd6d556f7f9cfa4697
tree6fead9e7214db130f866c69abf20ab04af912902
parentc8c23aa86e762a005abace465ceb80e4110659c2
[3.12] gh-120048: Make `test_imaplib` faster (GH-120050) (#120070)

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 710cbea6604d27c7d59ae4953bf522b997a82cc7)

Co-authored-by: Sam Gross <colesbury@gmail.com>
Co-authored-by: Serhiy Storchaka <storchaka@gmail.com>
Lib/test/test_imaplib.py