Pytest: adapt the python 3.7 ast additions/changes

Created on 6 Oct 2017  路  5Comments  路  Source: pytest-dev/pytest

python3.7 did away with pyo and it did add/change some details about the ast

this causes the current failures and should be reasonably fixabl

help wanted rewrite backward compatibility feature-branch

All 5 comments

python3.7 did away with pyo

wasn't that in 3.5? https://www.python.org/dev/peps/pep-0488/

@tomviner thanks correcting - i misinterpreted the pr output back then

Alpha versions of Python 3.7.0 don't respect PYTHONDONTWRITEBYTECODE https://bugs.python.org/issue31845
This makes test_dont_write_bytecode fail.

Looks like PYTHONOPTIMIZE has no effect either.

Thanks @Perlence for finding this.

Was this page helpful?
0 / 5 - 0 ratings