diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2023-12-25 18:46:44 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-12-25 18:46:44 (GMT) |
commit | 1162d29f5bd3ac7f899768b82efe16c36f31b8ac (patch) | |
tree | b612f17a6aa3ec6b371eadc9ab1b45a032ca4978 /Lib/test/test_interpreters.py | |
parent | bc6528ee6b0c1beb5ba7524db7f20f4eb17d25b1 (diff) | |
download | cpython-1162d29f5bd3ac7f899768b82efe16c36f31b8ac.zip cpython-1162d29f5bd3ac7f899768b82efe16c36f31b8ac.tar.gz cpython-1162d29f5bd3ac7f899768b82efe16c36f31b8ac.tar.bz2 |
[3.11] gh-76785: Make test.test_interpreters executable (GH-112982) (GH-113470) (GH-113473)
This is so that we can run python -m test.test_interpreters. As such it
backports that aspect of commit 86a77f4e1a5ceaff1036b0072521e12752b5df47,
where it is implemented by a package __main__.py.
(cherry picked from commit bdad5c367f60d4939d6945f78d94608e4521009f)
Co-authored-by: Jeff Allen <ja.py@farowl.co.uk>
Diffstat (limited to 'Lib/test/test_interpreters.py')
-rw-r--r-- | Lib/test/test_interpreters.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_interpreters.py b/Lib/test/test_interpreters.py index b969ddf..32d0335 100644 --- a/Lib/test/test_interpreters.py +++ b/Lib/test/test_interpreters.py @@ -745,3 +745,7 @@ class TestSendRecv(TestBase): self.assertEqual(obj4, b'spam') self.assertEqual(obj5, b'eggs') self.assertIs(obj6, default) + + +if __name__ == "__main__": + unittest.main() |