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:04 +02:00
parent 27d411255a
commit 3f9535b7f8

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