diff options
author | Nikita Sobolev <mail@sobolevn.me> | 2022-01-17 20:16:56 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-17 20:16:56 (GMT) |
commit | 596cf51a4d40f1ac3090cbccb83ad0663d739ae2 (patch) | |
tree | f9e65e27b8604d2ac9e2e8e9b10fda7ce6176e51 /Lib/test/test_enum.py | |
parent | d6c6e6ba739ee714e5706144853008f1eed446ba (diff) | |
download | cpython-596cf51a4d40f1ac3090cbccb83ad0663d739ae2.zip cpython-596cf51a4d40f1ac3090cbccb83ad0663d739ae2.tar.gz cpython-596cf51a4d40f1ac3090cbccb83ad0663d739ae2.tar.bz2 |
bpo-46418: [Enum] simplify `MODULE` declaration in tests (GH-30647)
Diffstat (limited to 'Lib/test/test_enum.py')
-rw-r--r-- | Lib/test/test_enum.py | 2 |
1 files changed, 1 insertions, 1 deletions
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 @@ def load_tests(loader, tests, ignore): )) return tests -MODULE = ('test.test_enum', '__main__')[__name__=='__main__'] +MODULE = __name__ SHORT_MODULE = MODULE.split('.')[-1] # for pickle tests |