| 1 |
From: Tristan Seligmann <[email protected]> |
| 2 |
Date: Mon, 17 Aug 2020 10:30:26 +0200 |
| 3 |
Subject: Tolerate SIGINT getting the kill in test-stdio.py. |
| 4 |
|
| 5 |
Forwarded: https://bz.mercurial-scm.org/show_bug.cgi?id=6402 |
| 6 |
--- |
| 7 |
tests/test-stdio.py | 2 +- |
| 8 |
1 file changed, 1 insertion(+), 1 deletion(-) |
| 9 |
|
| 10 |
--- a/tests/test-stdio.py |
| 11 |
+++ b/tests/test-stdio.py |
| 12 |
@@ -180,7 +180,7 @@ class TestStdio(unittest.TestCase): |
| 13 |
raise |
| 14 |
finally: |
| 15 |
retcode = proc.wait() |
| 16 |
- self.assertEqual(retcode, 0) |
| 17 |
+ self.assertIn(retcode, [0, -2]) |
| 18 |
if post_child_check is not None: |
| 19 |
post_child_check() |
| 20 |
|