(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.
This commit is contained in:
Victor Stinner 2014-06-04 00:42:17 +02:00
commit 8526a945a0
1 changed files with 2 additions and 0 deletions

View 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()