pypy/interpreter/test/test_zpy.py::test_pytrace
def test_pytrace():
output = run(sys.executable, pypypath, '-S',
stdin="__pytrace__ = 1\nx = 5\nx")
assert ('\t<module>: LOAD_CONST 0 (5)\n'
'\t<module>: STORE_NAME 0 (x)\n'
'\t<module>: LOAD_CONST 1 (None)\n'
'\t<module>: RETURN_VALUE 0 \n'
'>>>> ') in output
assert ('\t<module>: LOAD_NAME 0 (x)\n'
'\t<module>: PRINT_EXPR 0 \n'
# '5\n' --- this line sent to stderr
'\t<module>: LOAD_CONST 0 (None)\n'
'\t<module>: RETURN_VALUE 0 \n'
> '>>>> ') in output
E assert '\t<module>: LOAD_NAME 0 (x)\n\t<module>: PRINT_EXPR 0 \n\t<module>: LOAD_CONST 0 (None)\n\t<module>: RETURN_VALUE 0 \n>>>> ' in '>>>> Tracing enabled\n>>>> \t<module>: LOAD_CONST 0 (5)\n\t<module>: STORE_NAME 0 (x)\n\t<m... PRINT_EXPR 0 5\n\n\t<module>: LOAD_CONST 0 (None)\n\t<module>: RETURN_VALUE 0 \n>>>> '
interpreter\test\test_zpy.py:121: AssertionError
---------- Captured stderr call ----------
[platform:msg] Updated environment with vsver 160, using x64 True
[platform:msg] Updated environment with vsver 160, using x64 True
PyPy 8.0.0-alpha0 in StdObjSpace on top of Python 2.7.18 (startuptime: 22.48 secs)
builder: own-win-x86-64 build #2353+
test: pypy/interpreter/test/test_zpy.py::test_pytrace