mirror of
https://github.com/python/cpython.git
synced 2025-08-04 00:48:58 +00:00
If time.tzset doesn't exist, don't test it.
This commit is contained in:
parent
d11b62edd0
commit
d2b738ee7d
1 changed files with 3 additions and 0 deletions
|
@ -53,6 +53,9 @@ class TimeTestCase(unittest.TestCase):
|
|||
self.assertRaises(TypeError, time.asctime, 0)
|
||||
|
||||
def test_tzset(self):
|
||||
if not hasattr(time, "tzset"):
|
||||
return # Can't test this; don't want the test suite to fail
|
||||
|
||||
from os import environ
|
||||
|
||||
# Epoch time of midnight Dec 25th 2002. Never DST in northern
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue