From: Antoine Pitrou Date: Mon, 3 Jan 2011 22:12:43 +0000 (+0000) Subject: Temporary debug output for intermittent failures in test_subprocess X-Git-Tag: v3.2rc1~213 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=c43ec08bafd5d5fe62af2ed119e34ab33f17d05b;p=python Temporary debug output for intermittent failures in test_subprocess --- diff --git a/Lib/test/test_subprocess.py b/Lib/test/test_subprocess.py index 4b58308497..68fa70bbff 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,