From: Jeff Allen Date: Mon, 25 Dec 2023 18:31:57 +0000 (+0000) Subject: [3.12] gh-76785: Make test.test_interpreters executable (GH-112982) (GH-113470) X-Git-Tag: v3.12.2~262 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=bdad5c367f60d4939d6945f78d94608e4521009f;p=thirdparty%2FPython%2Fcpython.git [3.12] gh-76785: Make test.test_interpreters executable (GH-112982) (GH-113470) 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. --- diff --git a/Lib/test/test_interpreters.py b/Lib/test/test_interpreters.py index 2b0cff596da0..0cd9e721b201 100644 --- a/Lib/test/test_interpreters.py +++ b/Lib/test/test_interpreters.py @@ -1053,3 +1053,7 @@ class TestSendRecv(TestBase): self.assertEqual(obj4, b'spam') self.assertEqual(obj5, b'eggs') self.assertIs(obj6, default) + + +if __name__ == "__main__": + unittest.main()