(self)
| 6761 | |
| 6762 | class 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. |
| 6775 | class IranTest(ZoneInfoTest): |
nothing calls this directly
no test coverage detected