Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 8526a94

Browse files
committed
(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.
2 parents c3816b7 + 3f9535b commit 8526a94

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

Lib/test/test_asyncio/test_windows_utils.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -164,6 +164,8 @@ def test_popen(self):
164164
self.assertTrue(msg.upper().rstrip().startswith(out))
165165
self.assertTrue(b"stderr".startswith(err))
166166

167+
p.wait()
168+
167169

168170
if __name__ == '__main__':
169171
unittest.main()

0 commit comments

Comments
 (0)