[Python-checkins] r86108 - in python/branches/release31-maint: Lib/test/test_threading.py

brian.curtin python-checkins at python.org
Tue Nov 2 05:01:17 CET 2010


Author: brian.curtin
Date: Tue Nov  2 05:01:17 2010
New Revision: 86108

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/release31-maint/   (props changed)
   python/branches/release31-maint/Lib/test/test_threading.py

Modified: python/branches/release31-maint/Lib/test/test_threading.py
==============================================================================
--- python/branches/release31-maint/Lib/test/test_threading.py	(original)
+++ python/branches/release31-maint/Lib/test/test_threading.py	Tue Nov  2 05:01:17 2010
@@ -416,6 +416,7 @@
         p = subprocess.Popen([sys.executable, "-c", script], stdout=subprocess.PIPE)
         rc = p.wait()
         data = p.stdout.read().decode().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