]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
bpo-46418: [Enum] simplify `MODULE` declaration in tests (GH-30647)
authorNikita Sobolev <mail@sobolevn.me>
Mon, 17 Jan 2022 20:16:56 +0000 (23:16 +0300)
committerGitHub <noreply@github.com>
Mon, 17 Jan 2022 20:16:56 +0000 (12:16 -0800)
Lib/test/test_enum.py

index a0953fb960f33a0b13cf0beb804e7acb027c1624..18cc2f30ce559b54687e073c8a74cfbc1dde249f 100644 (file)
@@ -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