Tolerate SIGINT getting the kill in test-stdio.py.
authorTristan Seligmann <mithrandi@debian.org>
Mon, 17 Aug 2020 08:30:26 +0000 (10:30 +0200)
committerJulien Cristau <jcristau@debian.org>
Fri, 2 Sep 2022 12:08:12 +0000 (13:08 +0100)
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

index 93bad9521e48f0549b484ad604beba9f5011fef3..224c2da43ed5d735983a2ec239de3970db95aa40 100755 (executable)
@@ -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()