diff options
author | Maksim <130899353+MaximGit1@users.noreply.github.com> | 2025-04-12 07:46:19 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2025-04-12 07:46:19 (GMT) |
commit | 292a7248cda89f497e06eff4aa0147d6ff22f6bb (patch) | |
tree | 357a5ab5bb610e129253163a8d5019213c03f35b /Lib/test/test_metaclass.py | |
parent | 2aab2db1461ef49b42549255af16a74b1bf8a5ef (diff) | |
download | cpython-292a7248cda89f497e06eff4aa0147d6ff22f6bb.zip cpython-292a7248cda89f497e06eff4aa0147d6ff22f6bb.tar.gz cpython-292a7248cda89f497e06eff4aa0147d6ff22f6bb.tar.bz2 |
gh-131290: ensure that test files can be executed as standalone scripts (#131371)
---------
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
Diffstat (limited to 'Lib/test/test_metaclass.py')
-rw-r--r-- | Lib/test/test_metaclass.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_metaclass.py b/Lib/test/test_metaclass.py index 07a333f..627c29f 100644 --- a/Lib/test/test_metaclass.py +++ b/Lib/test/test_metaclass.py @@ -297,4 +297,6 @@ def load_tests(loader, tests, pattern): if __name__ == "__main__": + # set __name__ to match doctest expectations + __name__ = "test.test_metaclass" unittest.main() |