summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_subprocess.py
diff options
context:
space:
mode:
authorAntoine Pitrou <solipsis@pitrou.net>2011-01-03 22:12:43 (GMT)
committerAntoine Pitrou <solipsis@pitrou.net>2011-01-03 22:12:43 (GMT)
commitc43ec08bafd5d5fe62af2ed119e34ab33f17d05b (patch)
tree7e339354d538d22a0e60a89ce5b6653ffc4aebeb /Lib/test/test_subprocess.py
parent95aaeee59afab1e86a77f73b7da81ff5063b024a (diff)
downloadcpython-c43ec08bafd5d5fe62af2ed119e34ab33f17d05b.zip
cpython-c43ec08bafd5d5fe62af2ed119e34ab33f17d05b.tar.gz
cpython-c43ec08bafd5d5fe62af2ed119e34ab33f17d05b.tar.bz2
Temporary debug output for intermittent failures in test_subprocess
Diffstat (limited to 'Lib/test/test_subprocess.py')
-rw-r--r--Lib/test/test_subprocess.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py
index 4b58308..68fa70b 100644
--- a/Lib/test/test_subprocess.py
+++ b/Lib/test/test_subprocess.py
@@ -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,