1 new commit in pytest:

https://bitbucket.org/hpk42/pytest/commits/3bd27c424613/
changeset:   3bd27c424613
user:        gutworth
date:        2013-03-21 18:19:01
summary:     disable assertion rewriting on CPython 2.6.0 because of bugs 
(fixes #280)
affected #:  2 files

diff -r b4fbc67f6e9f5f5f20e15eb0d6f5f12f16991001 -r 
3bd27c424613a79e529359063c90fd36309b331c CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -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
 

diff -r b4fbc67f6e9f5f5f20e15eb0d6f5f12f16991001 -r 
3bd27c424613a79e529359063c90fd36309b331c _pytest/assertion/__init__.py
--- a/_pytest/assertion/__init__.py
+++ b/_pytest/assertion/__init__.py
@@ -39,7 +39,10 @@
         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)

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
pytest-commit mailing list
pytest-commit@python.org
http://mail.python.org/mailman/listinfo/pytest-commit

Reply via email to