]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] gh-76785: Make test.test_interpreters executable (GH-112982) (GH-113470)
authorJeff Allen <ja.py@farowl.co.uk>
Mon, 25 Dec 2023 18:31:57 +0000 (18:31 +0000)
committerGitHub <noreply@github.com>
Mon, 25 Dec 2023 18:31:57 +0000 (20:31 +0200)
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.

Lib/test/test_interpreters.py

index 2b0cff596da00eb0f52d54abbb193c7fa199a023..0cd9e721b201dd45947285749c0f17b18ae3f8b4 100644 (file)
@@ -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()