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

Method __init__

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

Source from the content-addressed store, hash-verified

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

nothing calls this directly

Calls 8

is_resource_enabledFunction · 0.90
dirFunction · 0.85
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