From 94365bc7728fbe4b27c6be55f9c955242ac6b641 Mon Sep 17 00:00:00 2001 From: Jeff Allen Date: Mon, 25 Dec 2023 18:31:57 +0000 Subject: [PATCH] [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. (cherry picked from commit bdad5c367f60d4939d6945f78d94608e4521009f) Co-authored-by: Jeff Allen --- 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 b969ddf33d81bc..32d033564dd72e 100644 --- a/Lib/test/test_interpreters.py +++ b/Lib/test/test_interpreters.py @@ -745,3 +745,7 @@ def test_recv_nowait_default(self): self.assertEqual(obj4, b'spam') self.assertEqual(obj5, b'eggs') self.assertIs(obj6, default) + + +if __name__ == "__main__": + unittest.main()