From: Alexander Belopolsky Date: Sun, 5 Feb 2023 07:14:15 +0000 (+0400) Subject: Fix detection of presence of time.tzset (gh-101539) (#101540) X-Git-Tag: v3.12.0a5~25 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=ddd619cffa457776a22f224b7111bd39de289d66;p=thirdparty%2FPython%2Fcpython.git Fix detection of presence of time.tzset (gh-101539) (#101540) Resolves gh-101539 Related to gh-31898 --- 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 @@ 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