]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] gh-76785: Make test.test_interpreters executable (GH-112982) (GH-113470) ...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 25 Dec 2023 18:46:44 +0000 (19:46 +0100)
committerGitHub <noreply@github.com>
Mon, 25 Dec 2023 18:46:44 +0000 (18:46 +0000)
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>
Lib/test/test_interpreters.py

index b969ddf33d81bc8939c47da8d90553912cf4de71..32d033564dd72ec9b7d98815d92991813783d0c1 100644 (file)
@@ -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()