commit | 596cf51a4d40f1ac3090cbccb83ad0663d739ae2 | [log] [tgz] |
---|---|---|
author | Nikita Sobolev <mail@sobolevn.me> | Mon Jan 17 23:16:56 2022 +0300 |
committer | GitHub <noreply@github.com> | Mon Jan 17 12:16:56 2022 -0800 |
tree | f9e65e27b8604d2ac9e2e8e9b10fda7ce6176e51 | |
parent | d6c6e6ba739ee714e5706144853008f1eed446ba [diff] |
bpo-46418: [Enum] simplify `MODULE` declaration in tests (GH-30647)
diff --git a/Lib/test/test_enum.py b/Lib/test/test_enum.py index a0953fb..18cc2f3 100644 --- a/Lib/test/test_enum.py +++ b/Lib/test/test_enum.py
@@ -31,7 +31,7 @@ )) return tests -MODULE = ('test.test_enum', '__main__')[__name__=='__main__'] +MODULE = __name__ SHORT_MODULE = MODULE.split('.')[-1] # for pickle tests