1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20
|
From: Tristan Seligmann <mithrandi@debian.org>
Date: Mon, 17 Aug 2020 10:30:26 +0200
Subject: Tolerate SIGINT getting the kill in test-stdio.py.
Forwarded: https://bz.mercurial-scm.org/show_bug.cgi?id=6402
---
tests/test-stdio.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
--- 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()
|