]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
gh-120048: Make `test_imaplib` faster (#120050)
authorSam Gross <colesbury@gmail.com>
Tue, 4 Jun 2024 18:59:23 +0000 (14:59 -0400)
committerGitHub <noreply@github.com>
Tue, 4 Jun 2024 18:59:23 +0000 (14:59 -0400)
commit710cbea6604d27c7d59ae4953bf522b997a82cc7
tree2e1ecc88eda0328dc3f7803050c73f9c6edee676
parentd9095194dde27eaabfc0b86a11989cdb9a2acfe1
gh-120048: Make `test_imaplib` faster (#120050)

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.

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