Fix detection of presence of time.tzset (gh-101539) (#101540)

Resolves gh-101539
Related to gh-31898
This commit is contained in:
Alexander Belopolsky 2023-02-05 11:14:15 +04:00 committed by GitHub
parent 5a2b984568
commit ddd619cffa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -6173,7 +6173,7 @@ class ZoneInfoTest(unittest.TestCase):
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