Skip to content

Commit 3e0bbd2

Browse files
committed
testing: fix ResourceWarning in broken-pipe test
1 parent afd53ed commit 3e0bbd2

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

testing/acceptance_test.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1288,3 +1288,6 @@ def test_no_brokenpipeerror_message(pytester: Pytester) -> None:
12881288
ret = popen.wait()
12891289
assert popen.stderr.read() == b""
12901290
assert ret == 1
1291+
1292+
# Cleanup.
1293+
popen.stderr.close()

0 commit comments

Comments
 (0)