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.1.2-1+rpi1~1^2^2^2^2~2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=cee8bbd33ac8d7929a1dbfa576fdc0f5273ad581;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 d41bd53..82934db 100755 --- a/tests/test-stdio.py +++ b/tests/test-stdio.py @@ -200,7 +200,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()