Kaydet (Commit) 1dbf2434 authored tarafından Tim Peters's avatar Tim Peters

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}).
üst f7c8d932
......@@ -24,9 +24,7 @@ else:
# 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):
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment