Commit 34b54873 authored by Serhiy Storchaka's avatar Serhiy Storchaka Committed by GitHub

bpo-30822: Deduplicate ZoneInfoTest classes in test_datetime. (#2534)

parent 98b6bc3b
......@@ -32,6 +32,7 @@ for module, suffix in zip(test_modules, test_suffixes):
elif issubclass(cls, unittest.TestSuite):
suit = cls()
test_classes.extend(type(test) for test in suit)
test_classes = sorted(set(test_classes), key=lambda cls: cls.__qualname__)
for cls in test_classes:
cls.__name__ += suffix
cls.__qualname__ += suffix
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment