[Python-checkins] [3.6] bpo-30822: Deduplicate ZoneInfoTest classes in test_datetime. (GH-2534) (#3405)

Victor Stinner webhook-mailer at python.org
Fri Sep 8 18:44:36 EDT 2017


https://github.com/python/cpython/commit/3892799668dbf2b123a52780fd1d78f8880fdeb7
commit: 3892799668dbf2b123a52780fd1d78f8880fdeb7
branch: 3.6
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: Victor Stinner <victor.stinner at gmail.com>
date: 2017年09月08日T15:44:33-07:00
summary:
[3.6] bpo-30822: Deduplicate ZoneInfoTest classes in test_datetime. (GH-2534) (#3405)
(cherry picked from commit 34b54873b51a1ebee2a3c57b7205537b4f33128d)
files:
M Lib/test/test_datetime.py
diff --git a/Lib/test/test_datetime.py b/Lib/test/test_datetime.py
index 2d00b56c1cc..d659f369d54 100644
--- a/Lib/test/test_datetime.py
+++ b/Lib/test/test_datetime.py
@@ -32,6 +32,7 @@
 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


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /