[Python-checkins] Fix detection of presence of time.tzset (gh-101539) (#101540)
abalkin
webhook-mailer at python.org
Sun Feb 5 02:14:21 EST 2023
https://github.com/python/cpython/commit/ddd619cffa457776a22f224b7111bd39de289d66
commit: ddd619cffa457776a22f224b7111bd39de289d66
branch: main
author: Alexander Belopolsky <abalkin at users.noreply.github.com>
committer: abalkin <abalkin at users.noreply.github.com>
date: 2023-02-05T11:14:15+04:00
summary:
Fix detection of presence of time.tzset (gh-101539) (#101540)
Resolves gh-101539
Related to gh-31898
files:
M Lib/test/datetimetester.py
diff --git a/Lib/test/datetimetester.py b/Lib/test/datetimetester.py
index 6a1df174a1b9..570f803918c1 100644
--- a/Lib/test/datetimetester.py
+++ b/Lib/test/datetimetester.py
@@ -6173,7 +6173,7 @@ def test_gaps(self):
self.assertEqual(ldt.fold, 0)
@unittest.skipUnless(
- hasattr(time, "tzset"), "time module has no attribute tzset"
+ hasattr(_time, "tzset"), "time module has no attribute tzset"
)
def test_system_transitions(self):
if ('Riyadh8' in self.zonename or
More information about the Python-checkins
mailing list