[Python-checkins] r86109 - in python/branches/release27-maint: Lib/test/test_threading.py
brian.curtin
python-checkins at python.org
Tue Nov 2 05:04:37 CET 2010
Author: brian.curtin
Date: Tue Nov 2 05:04:37 2010
New Revision: 86109
Log:
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.
........
Modified:
python/branches/release27-maint/ (props changed)
python/branches/release27-maint/Lib/test/test_threading.py
Modified: python/branches/release27-maint/Lib/test/test_threading.py
==============================================================================
--- python/branches/release27-maint/Lib/test/test_threading.py (original)
+++ python/branches/release27-maint/Lib/test/test_threading.py Tue Nov 2 05:04:37 2010
@@ -428,6 +428,7 @@
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")
More information about the Python-checkins
mailing list