From 2cb5779271d77b79bfc6c796d5b6f3856ea94d5c Mon Sep 17 00:00:00 2001 From: Tristan Seligmann Date: Mon, 17 Aug 2020 10:30:26 +0200 Subject: [PATCH] Tolerate SIGINT getting the kill in test-stdio.py. Forwarded: https://bz.mercurial-scm.org/show_bug.cgi?id=6402 Gbp-Pq: Name 0005-Tolerate-SIGINT-getting-the-kill-in-test-stdio.py.patch --- tests/test-stdio.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test-stdio.py b/tests/test-stdio.py index 93bad95..224c2da 100755 --- a/tests/test-stdio.py +++ b/tests/test-stdio.py @@ -175,7 +175,7 @@ class TestStdio(unittest.TestCase): raise finally: retcode = proc.wait() - self.assertEqual(retcode, 0) + self.assertIn(retcode, [0, -2]) if post_child_check is not None: post_child_check() -- 2.30.2