Author: Carl Friedrich Bolz-Tereick <[email protected]>
Branch: py3.6
Changeset: r97555:c61c6e7c5d66
Date: 2019-09-19 22:04 +0200
http://bitbucket.org/pypy/pypy/changeset/c61c6e7c5d66/
Log: really hope this finally fixes test_sys
diff --git a/pypy/module/sys/app.py b/pypy/module/sys/app.py
--- a/pypy/module/sys/app.py
+++ b/pypy/module/sys/app.py
@@ -38,7 +38,7 @@
# because there is indeed no traceback.
# the traceback module don't care
for line in format_exception_only(exctype, value):
- print(line, end="")
+ print(line, end="", file=sys.stderr)
else:
print_exception(exctype, value, traceback)
diff --git a/pypy/module/sys/test/test_sysmodule.py
b/pypy/module/sys/test/test_sysmodule.py
--- a/pypy/module/sys/test/test_sysmodule.py
+++ b/pypy/module/sys/test/test_sysmodule.py
@@ -415,6 +415,7 @@
eh(*sys.exc_info())
msg = err.getvalue()
assert "Traceback (most recent call last):" not in msg
+ assert "ValueError" in msg
sys.stderr = savestderr
del sys.tracebacklimit
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit