Temporary debug output for intermittent failures in test_subprocess

This commit is contained in:
Antoine Pitrou 2011-01-03 22:12:43 +00:00
parent 95aaeee59a
commit c43ec08baf
1 changed files with 4 additions and 0 deletions

View 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,