Author: Armin Rigo <[email protected]>
Branch: kill-someobject
Changeset: r58039:d6eb09e626e3
Date: 2012-10-12 15:36 +0200
http://bitbucket.org/pypy/pypy/changeset/d6eb09e626e3/
Log: Don't print unescaped strings to stdout.
diff --git a/pypy/translator/c/test/test_genc.py
b/pypy/translator/c/test/test_genc.py
--- a/pypy/translator/c/test/test_genc.py
+++ b/pypy/translator/c/test/test_genc.py
@@ -117,7 +117,13 @@
stdout = t.driver.cbuilder.cmdexec(
" ".join([llrepr_in(arg) for arg in args]),
expect_crash=(expected_exception_name is not None))
- print stdout
+ #
+ for line in stdout.splitlines(False):
+ if len(repr(line)) == len(line) + 2: # no escaped char
+ print line
+ else:
+ print 'REPR:', repr(line)
+ #
if expected_exception_name is not None:
stdout, stderr = stdout
stderr, lastline, empty = stderr.rsplit('\n', 2)
_______________________________________________
pypy-commit mailing list
[email protected]
http://mail.python.org/mailman/listinfo/pypy-commit