[pypy-commit] pypy default: It seems this syntax fails to compile on 2.7.3, but works on 2.7.6.

arigo noreply at buildbot.pypy.org
Tue Jun 10 13:23:05 CEST 2014


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r72016:49e9a74b7c9e
Date: 2014-06-10 13:22 +0200
http://bitbucket.org/pypy/pypy/changeset/49e9a74b7c9e/

Log:	It seems this syntax fails to compile on 2.7.3, but works on 2.7.6.

diff --git a/rpython/rlib/rsre/test/test_search.py b/rpython/rlib/rsre/test/test_search.py
--- a/rpython/rlib/rsre/test/test_search.py
+++ b/rpython/rlib/rsre/test/test_search.py
@@ -1,3 +1,4 @@
+import re, py
 from rpython.rlib.rsre import rsre_core
 from rpython.rlib.rsre.test.test_match import get_code, get_code_and_re
 
@@ -166,7 +167,10 @@
         assert res
 
     def test_empty_maxuntil_2(self):
-        r_code, r = get_code_and_re(r'X(.*?)+X')
+        try:
+            r_code, r = get_code_and_re(r'X(.*?)+X')
+        except re.error, e:
+            py.test.skip("older version of the stdlib: %s" % (e,))
         assert r.match('XfooXbarX').span() == (0, 5)
         assert r.match('XfooXbarX').span(1) == (4, 4)
         res = rsre_core.match(r_code, 'XfooXbarX')


More information about the pypy-commit mailing list