summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2017-07-02 19:36:12 (GMT)
committerGitHub <noreply@github.com>2017-07-02 19:36:12 (GMT)
commit34b54873b51a1ebee2a3c57b7205537b4f33128d (patch)
tree44e4215923cba774b2105dee9d8f1821383aabed
parent98b6bc3bf72532b784a1c1fa76eaa6026a663e44 (diff)
downloadcpython-34b54873b51a1ebee2a3c57b7205537b4f33128d.zip
cpython-34b54873b51a1ebee2a3c57b7205537b4f33128d.tar.gz
cpython-34b54873b51a1ebee2a3c57b7205537b4f33128d.tar.bz2
bpo-30822: Deduplicate ZoneInfoTest classes in test_datetime. (#2534)
-rw-r--r--Lib/test/test_datetime.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py
index 2d00b56..d659f36 100644
--- a/Lib/test/test_datetime.py
+++ b/Lib/test/test_datetime.py
@@ -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