summaryrefslogtreecommitdiff
path: root/Lib/test/test_threading.py
diff options
context:
space:
mode:
authorBrian Curtin <brian.curtin@gmail.com>2010-11-02 04:04:37 +0000
committerBrian Curtin <brian.curtin@gmail.com>2010-11-02 04:04:37 +0000
commita54bf8b006a6723c79e4868c2eb394894c1bf056 (patch)
treef693f6a3994a3df458417cf09ac4099df3631379 /Lib/test/test_threading.py
parent62c20b61cd827341ba6b0b5ea7984306ed9e7cdf (diff)
downloadcpython-git-a54bf8b006a6723c79e4868c2eb394894c1bf056.tar.gz
Merged revisions 86107 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k ........ r86107 | brian.curtin | 2010-11-01 22:59:09 -0500 (Mon, 01 Nov 2010) | 2 lines Clean up ResourceWarnings. Explictly close stdout from the subprocess. ........
Diffstat (limited to 'Lib/test/test_threading.py')
-rw-r--r--Lib/test/test_threading.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/Lib/test/test_threading.py b/Lib/test/test_threading.py
index 5af74794c2..21b7a04e2d 100644
--- a/Lib/test/test_threading.py
+++ b/Lib/test/test_threading.py
@@ -428,6 +428,7 @@ class ThreadJoinOnShutdown(BaseTestCase):
p = subprocess.Popen([sys.executable, "-c", script], stdout=subprocess.PIPE)
rc = p.wait()
data = p.stdout.read().replace('\r', '')
+ p.stdout.close()
self.assertEqual(data, "end of main\nend of thread\n")
self.assertFalse(rc == 2, "interpreter was blocked")
self.assertTrue(rc == 0, "Unexpected error")