testing: fix ResourceWarning in broken-pipe test

This commit is contained in:
Ran Benita 2020-11-20 17:54:03 +02:00
parent afd53ede6f
commit 3e0bbd2f57
1 changed files with 3 additions and 0 deletions

View File

@ -1288,3 +1288,6 @@ def test_no_brokenpipeerror_message(pytester: Pytester) -> None:
ret = popen.wait()
assert popen.stderr.read() == b""
assert ret == 1
# Cleanup.
popen.stderr.close()