]> granicus.if.org Git - python/commitdiff
Fix asyncio tests on Windows: wait for the subprocess exit
authorVictor Stinner <victor.stinner@gmail.com>
Tue, 3 Jun 2014 22:42:04 +0000 (00:42 +0200)
committerVictor Stinner <victor.stinner@gmail.com>
Tue, 3 Jun 2014 22:42:04 +0000 (00:42 +0200)
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

index b1f81da8c2ec58c5f0ba4953ca7622a5c0817215..7ea3a6d380b855bbbb28dbac0f84f3ccfc66ad65 100644 (file)
@@ -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()