[Python-checkins] python/dist/src/Lib/test test_subprocess.py, 1.11, 1.12

tim_one at users.sourceforge.net tim_one at users.sourceforge.net
Thu Oct 14 06:16:56 CEST 2004


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

Modified Files:
	test_subprocess.py 
Log Message:
remove_stderr_debug_decorations():  Always try the substitution.  Else
this test failed under the combination of passing -O to a debug-build
Python.  Now all 4 of those pass ({debug, release} x {-O, no -O}).


Index: test_subprocess.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_subprocess.py,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -d -r1.11 -r1.12
--- test_subprocess.py	13 Oct 2004 07:54:54 -0000	1.11
+++ test_subprocess.py	14 Oct 2004 04:16:54 -0000	1.12
@@ -24,9 +24,7 @@
 # shutdown time.  That frustrates tests trying to check stderr produced
 # from a spawned Python process.
 def remove_stderr_debug_decorations(stderr):
-    if __debug__:
-        stderr = re.sub(r"\[\d+ refs\]\r?\n?$", "", stderr)
-    return stderr
+    return re.sub(r"\[\d+ refs\]\r?\n?$", "", stderr)
 
 class ProcessTestCase(unittest.TestCase):
     def mkstemp(self):



More information about the Python-checkins mailing list