Commit c43ec08b authored by Antoine Pitrou's avatar Antoine Pitrou

Temporary debug output for intermittent failures in test_subprocess

parent 95aaeee5
...@@ -1170,6 +1170,10 @@ class POSIXProcessTestCase(BaseTestCase): ...@@ -1170,6 +1170,10 @@ class POSIXProcessTestCase(BaseTestCase):
remaining_fds = set(map(int, output.split(b','))) remaining_fds = set(map(int, output.split(b',')))
to_be_closed = open_fds - {fd} 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.assertIn(fd, remaining_fds, "fd to be passed not passed")
self.assertFalse(remaining_fds & to_be_closed, self.assertFalse(remaining_fds & to_be_closed,
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment