(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:
commit
8526a945a0
|
@ -164,6 +164,8 @@ class PopenTests(unittest.TestCase):
|
||||||
self.assertTrue(msg.upper().rstrip().startswith(out))
|
self.assertTrue(msg.upper().rstrip().startswith(out))
|
||||||
self.assertTrue(b"stderr".startswith(err))
|
self.assertTrue(b"stderr".startswith(err))
|
||||||
|
|
||||||
|
p.wait()
|
||||||
|
|
||||||
|
|
||||||
if __name__ == '__main__':
|
if __name__ == '__main__':
|
||||||
unittest.main()
|
unittest.main()
|
||||||
|
|
Loading…
Reference in New Issue