summaryrefslogtreecommitdiff
path: root/Lib/test/test_logging.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2019-12-10 21:12:26 +0100
committerGitHub <noreply@github.com>2019-12-10 21:12:26 +0100
commitc98b0199a984430312833ef403d265be314f7244 (patch)
tree5ed60fe7dab0a90dd08b51c54082f6a320fd0693 /Lib/test/test_logging.py
parentbbc8b7965bb9f46763c96878326966f4231c7d39 (diff)
downloadcpython-git-c98b0199a984430312833ef403d265be314f7244.tar.gz
bpo-38614: Use test.support.LONG_TIMEOUT constant (GH-17562)
Replace hardcoded timeout constants in tests with LONG_TIMEOUT of test.support, so it's easier to ajdust this timeout for all tests at once. LONG_TIMEOUT is 5 minutes by default, but it can be longer depending on --timeout command line option.
Diffstat (limited to 'Lib/test/test_logging.py')
-rw-r--r--Lib/test/test_logging.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_logging.py b/Lib/test/test_logging.py
index 3b135b8ddf..4feed03fec 100644
--- a/Lib/test/test_logging.py
+++ b/Lib/test/test_logging.py
@@ -1059,8 +1059,8 @@ if hasattr(socket, "AF_UNIX"):
# - end of server_helper section
class SMTPHandlerTest(BaseTest):
- # bpo-14314, bpo-19665, bpo-34092: don't wait forever, timeout of 1 minute
- TIMEOUT = 60.0
+ # bpo-14314, bpo-19665, bpo-34092: don't wait forever
+ TIMEOUT = support.LONG_TIMEOUT
def test_basic(self):
sockmap = {}