summaryrefslogtreecommitdiffstats
path: root/Lib/test/regrtest.py
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-02-09 20:50:08 (GMT)
committerGuido van Rossum <guido@python.org>2007-02-09 20:50:08 (GMT)
commit08c47ba0df4ba87cdce34c126e5bdb28f8c6034c (patch)
tree2ad61bc5c105d4097db6fbe8ec7700877d182d94 /Lib/test/regrtest.py
parentfff80dfa4aacdea4be560c74553b683ffc81d214 (diff)
downloadcpython-08c47ba0df4ba87cdce34c126e5bdb28f8c6034c.zip
cpython-08c47ba0df4ba87cdce34c126e5bdb28f8c6034c.tar.gz
cpython-08c47ba0df4ba87cdce34c126e5bdb28f8c6034c.tar.bz2
Fix an unfortunate mis-conversion: sometimes "print x," must be
converted to "print(x, end=' ')", but other times it must be converted to "print(x, end='')". There's no easy way to find out, because it depends on whether x ends with a newline. I'm sure I'll find more like this.
Diffstat (limited to 'Lib/test/regrtest.py')
-rwxr-xr-xLib/test/regrtest.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/Lib/test/regrtest.py b/Lib/test/regrtest.py
index 2efd391..0ae1c36 100755
--- a/Lib/test/regrtest.py
+++ b/Lib/test/regrtest.py
@@ -738,19 +738,19 @@ def reportdiff(expected, output):
elif op == 'delete':
print("***", pair(a0, a1), "of expected output missing:")
for line in a[a0:a1]:
- print("-", line, end=' ')
+ print("-", line, end='')
elif op == 'replace':
print("*** mismatch between", pair(a0, a1), "of expected", \
"output and", pair(b0, b1), "of actual output:")
for line in difflib.ndiff(a[a0:a1], b[b0:b1]):
- print(line, end=' ')
+ print(line, end='')
elif op == 'insert':
print("***", pair(b0, b1), "of actual output doesn't appear", \
"in expected output after line", str(a1)+":")
for line in b[b0:b1]:
- print("+", line, end=' ')
+ print("+", line, end='')
else:
print("get_opcodes() returned bad tuple?!?!", (op, a0, a1, b0, b1))