[Python-checkins] python/dist/src/Lib/test test_subprocess.py, 1.19, 1.20

bcannon at users.sourceforge.net bcannon at users.sourceforge.net
Sat Mar 5 07:40:55 CET 2005


Update of /cvsroot/python/python/dist/src/Lib/test
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv28634/Lib/test

Modified Files:
	test_subprocess.py 
Log Message:
Tweak test_communicate_stderr so that it works when run under a pydebug build.


Index: test_subprocess.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_subprocess.py,v
retrieving revision 1.19
retrieving revision 1.20
diff -u -d -r1.19 -r1.20
--- test_subprocess.py	3 Mar 2005 20:47:37 -0000	1.19
+++ test_subprocess.py	5 Mar 2005 06:40:52 -0000	1.20
@@ -269,7 +269,9 @@
                              stderr=subprocess.PIPE)
         (stdout, stderr) = p.communicate()
         self.assertEqual(stdout, None)
-        self.assertEqual(stderr, "pineapple")
+        # When running with a pydebug build, the # of references is outputted
+        # to stderr, so just check if stderr at least started with "pinapple"
+        self.assert_(stderr.startswith("pineapple"))
 
     def test_communicate(self):
         p = subprocess.Popen([sys.executable, "-c",



More information about the Python-checkins mailing list