diff options
author | Christian Heimes <christian@python.org> | 2022-03-15 20:55:35 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-15 20:55:35 (GMT) |
commit | a4674f0194067a801f6c6bdb4fc6448e3a40e069 (patch) | |
tree | fbcfcdd74d26d7d8e83cfe2feffe4a7e01b310d7 /Lib/test/test_time.py | |
parent | af0a50de4b77dc774fcfdf5468ec320b08bfb53b (diff) | |
download | cpython-a4674f0194067a801f6c6bdb4fc6448e3a40e069.zip cpython-a4674f0194067a801f6c6bdb4fc6448e3a40e069.tar.gz cpython-a4674f0194067a801f6c6bdb4fc6448e3a40e069.tar.bz2 |
bpo-40280: Detect presence of time.tzset and thread_time clock (GH-31898)
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 57011d1..faac639 100644 --- a/Lib/test/test_time.py +++ b/Lib/test/test_time.py @@ -561,8 +561,9 @@ class TimeTestCase(unittest.TestCase): 'perf_counter', 'process_time', 'time', - 'thread_time', ] + if hasattr(time, 'thread_time'): + clocks.append('thread_time') for name in clocks: with self.subTest(name=name): |