[issue17756] test_syntax_error fails when run in the installed location

Ezio Melotti report at bugs.python.org
Fri Jan 1 00:47:35 EST 2016


Ezio Melotti added the comment:

I'm going to close this since the reported issue has been fixed.

In the test sys.stderr was mocked, and Mock.method_calls simply records the calls done to the mock.  Therefore the fact that 'NameError' and ':' were written on sys.stderr on two separate calls to write() is not a problem with mocks.

----------
nosy: +rbcollins
resolution: out of date -> fixed
stage: needs patch -> resolved
status: open -> closed
type:  -> behavior

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


More information about the Python-bugs-list mailing list