Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(57567)

Unified Diff: Lib/test/test_subprocess.py

Issue 11659: Fix ResourceWarning in test_subprocess
Patch Set: Created 8 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Misc/ACKS » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_subprocess.py Thu Mar 24 11:47:29 2011 +0800
+++ b/Lib/test/test_subprocess.py Thu Mar 24 00:14:50 2011 -0500
@@ -1325,6 +1325,7 @@
stdout=subprocess.PIPE,
bufsize=0)
f = p.stdout
+ self.addCleanup(f.close)
try:
self.assertEqual(f.read(4), b"appl")
self.assertIn(f, select.select([f], [], [], 0.0)[0])
« no previous file with comments | « no previous file | Misc/ACKS » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+