summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_metaclass.py
diff options
context:
space:
mode:
authorMaksim <130899353+MaximGit1@users.noreply.github.com>2025-04-12 07:46:19 (GMT)
committerGitHub <noreply@github.com>2025-04-12 07:46:19 (GMT)
commit292a7248cda89f497e06eff4aa0147d6ff22f6bb (patch)
tree357a5ab5bb610e129253163a8d5019213c03f35b /Lib/test/test_metaclass.py
parent2aab2db1461ef49b42549255af16a74b1bf8a5ef (diff)
downloadcpython-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.py2
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()