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

Method __init__

Lib/test/datetimetester.py:6950–6959  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls 7

is_resource_enabledFunction · 0.90
superClass · 0.85
zonenamesMethod · 0.80
TestClass · 0.70
startswithMethod · 0.45
appendMethod · 0.45
__init__Method · 0.45

Tested by

no test coverage detected