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.7.4-1+rpi1^2~3 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=4736885592c6f8490c2e27760eab62d12a8ab18b;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()