Skip to content

Commit 1162d29

Browse files
[3.11] gh-76785: Make test.test_interpreters executable (GH-112982) (GH-113470) (GH-113473)
This is so that we can run python -m test.test_interpreters. As such it backports that aspect of commit 86a77f4, where it is implemented by a package __main__.py. (cherry picked from commit bdad5c3) Co-authored-by: Jeff Allen <[email protected]>
1 parent bc6528e commit 1162d29

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

Lib/test/test_interpreters.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -745,3 +745,7 @@ def test_recv_nowait_default(self):
745745
self.assertEqual(obj4, b'spam')
746746
self.assertEqual(obj5, b'eggs')
747747
self.assertIs(obj6, default)
748+
749+
750+
if __name__ == "__main__":
751+
unittest.main()

0 commit comments

Comments
 (0)