From 3f9535b7f8cd6a136d392d6be845795522950486 Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Wed, 4 Jun 2014 00:42:04 +0200 Subject: Fix asyncio tests on Windows: wait for the subprocess exit Before, regrtest failed to remove the temporary test directory because the process was still running in this directory. --- Lib/test/test_asyncio/test_windows_utils.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/Lib/test/test_asyncio/test_windows_utils.py b/Lib/test/test_asyncio/test_windows_utils.py index b1f81da..7ea3a6d 100644 --- a/Lib/test/test_asyncio/test_windows_utils.py +++ b/Lib/test/test_asyncio/test_windows_utils.py @@ -164,6 +164,8 @@ class PopenTests(unittest.TestCase): self.assertTrue(msg.upper().rstrip().startswith(out)) self.assertTrue(b"stderr".startswith(err)) + p.wait() + if __name__ == '__main__': unittest.main() -- cgit v0.12