]> granicus.if.org Git - python/commitdiff
Temporary debug output for intermittent failures in test_subprocess
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 3 Jan 2011 22:12:43 +0000 (22:12 +0000)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 3 Jan 2011 22:12:43 +0000 (22:12 +0000)
Lib/test/test_subprocess.py

index 4b58308497976def800adf5c08f9248e683996d4..68fa70bbffdb2e9eee73d7d36942811a9e3c7a6b 100644 (file)
@@ -1170,6 +1170,10 @@ class POSIXProcessTestCase(BaseTestCase):
 
             remaining_fds = set(map(int, output.split(b',')))
             to_be_closed = open_fds - {fd}
+            # Temporary debug output for intermittent failures
+            if support.verbose:
+                print(" -- fds that should have been closed:", to_be_closed)
+                print(" -- fds that remained open:", remaining_fds)
 
             self.assertIn(fd, remaining_fds, "fd to be passed not passed")
             self.assertFalse(remaining_fds & to_be_closed,