testing: fix ResourceWarning in broken-pipe test
This commit is contained in:
parent
afd53ede6f
commit
3e0bbd2f57
|
@ -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()
|
||||
|
|
Loading…
Reference in New Issue