We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ee7e8c0 commit e9c16d3Copy full SHA for e9c16d3
Lib/test/test_zoneinfo/test_zoneinfo.py
@@ -1949,6 +1949,13 @@ class CTestModule(TestModule):
1949
1950
class MiscTests(unittest.TestCase):
1951
def test_pydatetime(self):
1952
+ # Test that zoneinfo works if the C implementation of datetime
1953
+ # is not available and the Python implementation of datetime is used.
1954
+ # The Python implementation of zoneinfo should be used in thet case.
1955
+ #
1956
+ # Run the test in a subprocess, as importing _zoneinfo with
1957
+ # _datettime disabled causes crash in the previously imported
1958
+ # _zoneinfo.
1959
assert_python_ok('-c', '''if 1:
1960
import sys
1961
sys.modules['_datetime'] = None
0 commit comments