]> granicus.if.org Git - python/commitdiff
Issue #25122: Remove verbose mode of test_eintr
authorVictor Stinner <victor.stinner@gmail.com>
Mon, 28 Sep 2015 13:04:11 +0000 (15:04 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Mon, 28 Sep 2015 13:04:11 +0000 (15:04 +0200)
"./python -m test -W test_eintr" wrote Lib/test/eintrdata/eintr_tester.py
output to stdout which was not expected.

Since test_eintr doesn't hang anymore, remove the verbose mode instead.

Lib/test/test_eintr.py

index aabad835a0a802e686f8de6f9cffd69ab528f012..d3cdda04e6944587218b69727202b9443abb49ee 100644 (file)
@@ -16,14 +16,7 @@ class EINTRTests(unittest.TestCase):
         # Run the tester in a sub-process, to make sure there is only one
         # thread (for reliable signal delivery).
         tester = support.findfile("eintr_tester.py", subdir="eintrdata")
-
-        if support.verbose:
-            args = [sys.executable, tester]
-            with subprocess.Popen(args) as proc:
-                exitcode = proc.wait()
-            self.assertEqual(exitcode, 0)
-        else:
-            script_helper.assert_python_ok(tester)
+        script_helper.assert_python_ok(tester)
 
 
 if __name__ == "__main__":