bpo-46418: [Enum] simplify MODULE declaration in tests (GH-30647)

This commit is contained in:
Nikita Sobolev 2022-01-17 23:16:56 +03:00 committed by GitHub
parent d6c6e6ba73
commit 596cf51a4d
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View 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