From 596cf51a4d40f1ac3090cbccb83ad0663d739ae2 Mon Sep 17 00:00:00 2001 From: Nikita Sobolev Date: Mon, 17 Jan 2022 23:16:56 +0300 Subject: bpo-46418: [Enum] simplify `MODULE` declaration in tests (GH-30647) --- Lib/test/test_enum.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- cgit v0.12