diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2017-09-08 22:44:33 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2017-09-08 22:44:33 (GMT) |
commit | 3892799668dbf2b123a52780fd1d78f8880fdeb7 (patch) | |
tree | 4cc75a3cba7a47de82d147e321444ca0f132ef8f /Lib/test/test_datetime.py | |
parent | ef18b0dab94b00ee233d672d89776539ef236207 (diff) | |
download | cpython-3892799668dbf2b123a52780fd1d78f8880fdeb7.zip cpython-3892799668dbf2b123a52780fd1d78f8880fdeb7.tar.gz cpython-3892799668dbf2b123a52780fd1d78f8880fdeb7.tar.bz2 |
[3.6] bpo-30822: Deduplicate ZoneInfoTest classes in test_datetime. (GH-2534) (#3405)
(cherry picked from commit 34b54873b51a1ebee2a3c57b7205537b4f33128d)
Diffstat (limited to 'Lib/test/test_datetime.py')
-rw-r--r-- | Lib/test/test_datetime.py | 1 |
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 |