diff options
author | Victor Stinner <vstinner@python.org> | 2019-12-11 21:17:04 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2019-12-11 21:17:04 (GMT) |
commit | 7772b1af5ebc9d72d0cfc8332aea6b2143eafa27 (patch) | |
tree | ab891c2456b721210dca1d5462f18b0e4d46dabf /Lib/test/test_poplib.py | |
parent | 0d63bacefd2e5b937ec6b0ec3053777c09941b4a (diff) | |
download | cpython-7772b1af5ebc9d72d0cfc8332aea6b2143eafa27.zip cpython-7772b1af5ebc9d72d0cfc8332aea6b2143eafa27.tar.gz cpython-7772b1af5ebc9d72d0cfc8332aea6b2143eafa27.tar.bz2 |
Diffstat (limited to 'Lib/test/test_poplib.py')
-rw-r--r-- | Lib/test/test_poplib.py | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/Lib/test/test_poplib.py b/Lib/test/test_poplib.py index 7b1d854..911cba1 100644 --- a/Lib/test/test_poplib.py +++ b/Lib/test/test_poplib.py @@ -255,7 +255,8 @@ class TestPOP3Class(TestCase): def setUp(self): self.server = DummyPOP3Server((HOST, PORT)) self.server.start() - self.client = poplib.POP3(self.server.host, self.server.port, timeout=3) + self.client = poplib.POP3(self.server.host, self.server.port, + timeout=test_support.LOOPBACK_TIMEOUT) def tearDown(self): self.client.close() @@ -376,7 +377,8 @@ class TestPOP3Class(TestCase): self.assertEqual(ctx.check_hostname, True) with self.assertRaises(ssl.CertificateError): resp = self.client.stls(context=ctx) - self.client = poplib.POP3("localhost", self.server.port, timeout=3) + self.client = poplib.POP3("localhost", self.server.port, + timeout=test_support.LOOPBACK_TIMEOUT) resp = self.client.stls(context=ctx) self.assertEqual(resp, expected) @@ -445,7 +447,8 @@ class TestPOP3_TLSClass(TestPOP3Class): def setUp(self): self.server = DummyPOP3Server((HOST, PORT)) self.server.start() - self.client = poplib.POP3(self.server.host, self.server.port, timeout=3) + self.client = poplib.POP3(self.server.host, self.server.port, + timeout=test_support.LOOPBACK_TIMEOUT) self.client.stls() def tearDown(self): |