]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
[3.13] gh-120048: Make `test_imaplib` faster (GH-120050) (#120069)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Tue, 4 Jun 2024 20:18:33 +0000 (22:18 +0200)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2024 20:18:33 +0000 (20:18 +0000)
commita9e807fe44f581ae39f2fcc7a62c547f2f2eb6f2
tree3785f0e5080dff886efb4329fb195d6aa1e42a2a
parent327a36a4f98466e734bf3b10994290fceab8fdd2
[3.13] gh-120048: Make `test_imaplib` faster (GH-120050) (#120069)

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