diff options
author | Hai Shi <shihai1992@gmail.com> | 2020-06-30 13:46:06 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-06-30 13:46:06 (GMT) |
commit | 3ddc634cd5469550c0c2dc5a6051a70739995699 (patch) | |
tree | 5c4bba3b3ff821397ef129298a49f4b3f34c58a4 /Lib/test/test_time.py | |
parent | 3fa4799c3f9d9de7cac30e5db3627e9e125b9ce5 (diff) | |
download | cpython-3ddc634cd5469550c0c2dc5a6051a70739995699.zip cpython-3ddc634cd5469550c0c2dc5a6051a70739995699.tar.gz cpython-3ddc634cd5469550c0c2dc5a6051a70739995699.tar.bz2 |
bpo-40275: Use new test.support helper submodules in tests (GH-21219)
Diffstat (limited to 'Lib/test/test_time.py')
-rw-r--r-- | Lib/test/test_time.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_time.py b/Lib/test/test_time.py index 80e43fa..6ced047 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -1,4 +1,5 @@ from test import support +from test.support import warnings_helper import decimal import enum import locale @@ -247,7 +248,7 @@ class TimeTestCase(unittest.TestCase): # not change output based on its value and no test for year # because systems vary in their support for year 0. expected = "2000 01 01 00 00 00 1 001" - with support.check_warnings(): + with warnings_helper.check_warnings(): result = time.strftime("%Y %m %d %H %M %S %w %j", (2000,)+(0,)*8) self.assertEqual(expected, result) |