MCPcopy Index your code
hub / github.com/python/cpython / ZoneInfoCompleteTest

Class ZoneInfoCompleteTest

Lib/test/datetimetester.py:6949–6959  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6947
6948
6949class ZoneInfoCompleteTest(unittest.TestSuite):
6950 def __init__(self):
6951 tests = []
6952 if is_resource_enabled('tzdata'):
6953 for name in ZoneInfo.zonenames():
6954 Test = type('ZoneInfoTest[%s]' % name, (ZoneInfoTest,), {})
6955 Test.zonename = name
6956 for method in dir(Test):
6957 if method.startswith('test_'):
6958 tests.append(Test(method))
6959 super().__init__(tests)
6960
6961# Iran had a sub-minute UTC offset before 1946.
6962class IranTest(ZoneInfoTest):

Callers 1

load_testsFunction · 0.85

Calls

no outgoing calls

Tested by 1

load_testsFunction · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…