From: Victor Stinner Date: Tue, 3 Jun 2014 22:42:04 +0000 (+0200) Subject: Fix asyncio tests on Windows: wait for the subprocess exit X-Git-Tag: v3.4.2rc1~445 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=3f9535b7f8cd6a136d392d6be845795522950486;p=python 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. --- diff --git a/Lib/test/test_asyncio/test_windows_utils.py b/Lib/test/test_asyncio/test_windows_utils.py index b1f81da8c2..7ea3a6d380 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()