From bdad5c367f60d4939d6945f78d94608e4521009f Mon Sep 17 00:00:00 2001 From: Jeff Allen Date: Mon, 25 Dec 2023 18:31:57 +0000 Subject: [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. --- Lib/test/test_interpreters.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/Lib/test/test_interpreters.py b/Lib/test/test_interpreters.py index 2b0cff5..0cd9e72 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() -- cgit v0.12