[Python-checkins] cpython (3.4): Fix asyncio tests on Windows: wait for the subprocess exit

victor.stinner python-checkins at python.org
Wed Jun 4 00:42:43 CEST 2014


http://hg.python.org/cpython/rev/c5186045395e
changeset: 91007:c5186045395e
branch: 3.4
parent: 91005:9d2c0b41c1d5
user: Victor Stinner <victor.stinner at gmail.com>
date: Wed Jun 04 00:42:04 2014 +0200
summary:
 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.
files:
 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
--- a/Lib/test/test_asyncio/test_windows_utils.py
+++ b/Lib/test/test_asyncio/test_windows_utils.py
@@ -164,6 +164,8 @@
 self.assertTrue(msg.upper().rstrip().startswith(out))
 self.assertTrue(b"stderr".startswith(err))
 
+ p.wait()
+
 
 if __name__ == '__main__':
 unittest.main()
-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /