From: Nikita Sobolev Date: Mon, 17 Jan 2022 20:16:56 +0000 (+0300) Subject: bpo-46418: [Enum] simplify `MODULE` declaration in tests (GH-30647) X-Git-Tag: v3.11.0a5~228 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=596cf51a4d40f1ac3090cbccb83ad0663d739ae2;p=thirdparty%2FPython%2Fcpython.git 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 a0953fb960f3..18cc2f30ce55 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