New issue 735: Assertion rewriting triggers internal assert in compile.c on debug builds https://bitbucket.org/pytest-dev/pytest/issue/735/assertion-rewriting-triggers-internal
David MacIver: When running pytest-2.7.0 on a debug build of Python 3.4.3 against the following code, I get an internal assert triggered in Python: ``` #!python def test_trivial(): assert True ``` The following is the error: ``` $ ~/snakepit/python3.4-debug -m pytest test_rewriting.py --capture=no ============================================= test session starts ============================================= platform linux -- Python 3.4.3 -- py-1.4.26 -- pytest-2.7.0 rootdir: /home/david/projects/hypothesis, inifile: collecting 0 itemspython3.4-debug: Python/compile.c:2733: compiler_nameop: Assertion `PyUnicode_CompareWithASCIIString(name, "None") && PyUnicode_CompareWithASCIIString(name, "True") && PyUnicode_CompareWithASCIIString(name, "False")' failed. Aborted ``` If I switch pytest to --assert=plain the error goes away. It seems likely there's some sort of Python bug underlying this, but I figured you'd want to know about the problem anyway and I don't have a minimization smaller than "all of pytest" so don't feel able to report this to cpython myself. _______________________________________________ pytest-commit mailing list pytest-commit@python.org https://mail.python.org/mailman/listinfo/pytest-commit