| 6947 | |
| 6948 | |
| 6949 | class 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. |
| 6962 | class IranTest(ZoneInfoTest): |
no outgoing calls
searching dependent graphs…