]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix detection of presence of time.tzset (gh-101539) (#101540)
authorAlexander Belopolsky <abalkin@users.noreply.github.com>
Sun, 5 Feb 2023 07:14:15 +0000 (11:14 +0400)
committerGitHub <noreply@github.com>
Sun, 5 Feb 2023 07:14:15 +0000 (11:14 +0400)
Resolves gh-101539
Related to gh-31898

Lib/test/datetimetester.py

index 6a1df174a1b9725ebabddcb0f49844b0a47a452c..570f803918c1ef52e01cadc159d6025f58e4fe6d 100644 (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