diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index c44a778d5bbefe..16b7c5d118e43e 100644 --- a/Lib/test/test_subprocess.py +++ b/Lib/test/test_subprocess.py @@ -283,7 +283,7 @@ def test_check_output_timeout(self): # this much time to start and print. timeout=3) self.fail("Expected TimeoutExpired.") - self.assertEqual(c.exception.output, b'BDFL') + self.assertIn(c.exception.output, [None, b'BDFL']) def test_call_kwargs(self): # call() function with keyword args @@ -1691,7 +1691,7 @@ def test_check_output_timeout(self): # Some heavily loaded buildbots (sparc Debian 3.x) require # this much time to start and print. timeout=3, stdout=subprocess.PIPE) - self.assertEqual(c.exception.output, b'BDFL') + self.assertIn(c.exception.output, [None, b'BDFL']) # output is aliased to stdout self.assertEqual(c.exception.stdout, b'BDFL') diff --git a/Misc/NEWS.d/next/Tests/2024-03-16-21-33-50.gh-issue-116742.iZsD_C.rst b/Misc/NEWS.d/next/Tests/2024-03-16-21-33-50.gh-issue-116742.iZsD_C.rst new file mode 100644 index 00000000000000..e32e76dd5f0ecd --- /dev/null +++ b/Misc/NEWS.d/next/Tests/2024-03-16-21-33-50.gh-issue-116742.iZsD_C.rst @@ -0,0 +1 @@ +skip