File: 0005-Tolerate-SIGINT-getting-the-kill-in-test-stdio.py.patch

package info (click to toggle)
mercurial 7.1-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 45,084 kB
  • sloc: python: 208,593; ansic: 56,460; tcl: 3,715; sh: 1,839; lisp: 1,483; cpp: 864; makefile: 769; javascript: 649; xml: 36
file content (20 lines) | stat: -rw-r--r-- 650 bytes parent folder | download | duplicates (3)
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()