mirror of
https://github.com/python/cpython.git
synced 2025-12-04 00:30:19 +00:00
bpo-40280: Detect presence of time.tzset and thread_time clock (GH-31898)
This commit is contained in:
parent
af0a50de4b
commit
a4674f0194
4 changed files with 11 additions and 2 deletions
|
|
@ -5856,6 +5856,9 @@ class ZoneInfoTest(unittest.TestCase):
|
|||
ldt = tz.fromutc(udt.replace(tzinfo=tz))
|
||||
self.assertEqual(ldt.fold, 0)
|
||||
|
||||
@unittest.skipUnless(
|
||||
hasattr(time, "tzset"), "time module has no attribute tzset"
|
||||
)
|
||||
def test_system_transitions(self):
|
||||
if ('Riyadh8' in self.zonename or
|
||||
# From tzdata NEWS file:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue