From: Tristan Seligmann Date: Mon, 17 Aug 2020 08:30:26 +0000 (+0200) Subject: Tolerate SIGINT getting the kill in test-stdio.py. X-Git-Tag: archive/raspbian/6.3.2-1+rpi1+deb12u1^2~6 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=511cd432bf7a7399a4a606cf5c6ef6e192513c85;p=mercurial.git 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 --- 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()