From a01b79c2942db1a6b0a6fe5b4301e2d2f14512eb Mon Sep 17 00:00:00 2001 From: Jithu Date: Sun, 17 Mar 2024 02:43:15 +0530 Subject: [PATCH 1/2] Fix : test_subprocess - test_check_output_timeout flaky --- Lib/test/test_subprocess.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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') From 4aa5893373c33b62c0eab778ec8349ada83b301c Mon Sep 17 00:00:00 2001 From: "blurb-it[bot]" <43283697+blurb-it[bot]@users.noreply.github.com> Date: Sat, 16 Mar 2024 21:33:51 +0000 Subject: [PATCH 2/2] =?UTF-8?q?=F0=9F=93=9C=F0=9F=A4=96=20Added=20by=20blu?= =?UTF-8?q?rb=5Fit.?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../next/Tests/2024-03-16-21-33-50.gh-issue-116742.iZsD_C.rst | 1 + 1 file changed, 1 insertion(+) create mode 100644 Misc/NEWS.d/next/Tests/2024-03-16-21-33-50.gh-issue-116742.iZsD_C.rst 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