diff options
author | Victor Stinner <victor.stinner@gmail.com> | 2014-06-03 22:42:04 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@gmail.com> | 2014-06-03 22:42:04 (GMT) |
commit | 3f9535b7f8cd6a136d392d6be845795522950486 (patch) | |
tree | 8cd2019667e2fc6393a9012ac06dfb2e1a67f58c | |
parent | 27d411255a6ce350e577a248181e329183ec36c1 (diff) | |
download | cpython-3f9535b7f8cd6a136d392d6be845795522950486.zip cpython-3f9535b7f8cd6a136d392d6be845795522950486.tar.gz cpython-3f9535b7f8cd6a136d392d6be845795522950486.tar.bz2 |
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.
-rw-r--r-- | Lib/test/test_asyncio/test_windows_utils.py | 2 |
1 files changed, 2 insertions, 0 deletions
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() |