disable assertion rewriting on CPython 2.6.0 because of bugs (fixes #280)

This commit is contained in:
Benjamin Peterson 2013-03-21 12:19:01 -05:00
parent 1884be0121
commit 5e479c94ce
2 changed files with 6 additions and 1 deletions

View File

@ -1,6 +1,8 @@
Changes between 2.3.4 and 2.3.5dev
-----------------------------------
- issue 280 - disable assertion rewriting on buggy CPython 2.6.0
- inject "getfixture()" helper to retrieve fixtures from doctests,
thanks Andreas Zeidler

View File

@ -39,7 +39,10 @@ def pytest_configure(config):
except ImportError:
mode = "reinterp"
else:
if sys.platform.startswith('java'):
# Both Jython and CPython 2.6.0 have AST bugs that make the
# assertion rewriting hook malfunction.
if (sys.platform.startswith('java') or
sys.version_info[:3] == (2, 6, 0)):
mode = "reinterp"
if mode != "plain":
_load_modules(mode)