MCPcopy Index your code
hub / github.com/RustPython/RustPython / ZoneInfoCompleteTest

Class ZoneInfoCompleteTest

Lib/test/datetimetester.py:6762–6772  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

6760
6761
6762class ZoneInfoCompleteTest(unittest.TestSuite):
6763 def __init__(self):
6764 tests = []
6765 if is_resource_enabled('tzdata'):
6766 for name in ZoneInfo.zonenames():
6767 Test = type('ZoneInfoTest[%s]' % name, (ZoneInfoTest,), {})
6768 Test.zonename = name
6769 for method in dir(Test):
6770 if method.startswith('test_'):
6771 tests.append(Test(method))
6772 super().__init__(tests)
6773
6774# Iran had a sub-minute UTC offset before 1946.
6775class IranTest(ZoneInfoTest):

Callers 1

load_testsFunction · 0.85

Calls

no outgoing calls

Tested by 1

load_testsFunction · 0.68