From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Mon, 25 Dec 2023 18:46:44 +0000 (+0100) Subject: [3.11] gh-76785: Make test.test_interpreters executable (GH-112982) (GH-113470) ... X-Git-Tag: v3.11.8~223 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1162d29f5bd3ac7f899768b82efe16c36f31b8ac;p=thirdparty%2FPython%2Fcpython.git [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 --- diff --git a/Lib/test/test_interpreters.py b/Lib/test/test_interpreters.py index b969ddf33d81..32d033564dd7 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()