[issue30721] Show expected input for right shift operator usage in custom "print" error message

Terry J. Reedy report at bugs.python.org
Tue Jul 25 14:05:39 EDT 2017


Terry J. Reedy added the comment:

The test added in the PR passes on linux (Travis) and Mac (op's machine), fails on Windows (Appveyor).  The patch itself modifies abstract.c.  Could some Windows expert take a look?

test_string_with_stream_redirection (test.test_print.TestPy2MigrationHint) ... FAIL
FAIL: test_string_with_stream_redirection (test.test_print.TestPy2MigrationHint)

Traceback (most recent call last):
File "C:\projects\cpython\lib\test\test_print.py", line 165, in test_string_with_stream_redirection
'file=<output_stream>)', str(context.exception))
AssertionError: 'Did you mean "print(, file=<output_stream>)' not found in "unsupported operand type(s) for >>: 'builtin_function_or_method' and '_io.StringIO'"

----------
nosy: +paul.moore, steve.dower, terry.reedy, tim.golden, zach.ware
stage:  -> patch review

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue30721>
_______________________________________


More information about the Python-bugs-list mailing list