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

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


http://hg.python.org/cpython/rev/5f2cfafe6182
changeset:   91008:5f2cfafe6182
parent:      91006:b2f329e9cd18
parent:      91007:c5186045395e
user:        Victor Stinner <victor.stinner at gmail.com>
date:        Wed Jun 04 00:42:17 2014 +0200
summary:
  (Merge 3.4) 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