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>
Thu, 28 Oct 2021 20:22:46 +0000 (21:22 +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 d41bd53c998f99b0f6c7545a0080b5e8ee940aaf..82934db74a87febaebb085da40c666b13da562e7 100755 (executable)
@@ -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()