[pypy-commit] pypy default: Add the original failure as a test.
arigo
noreply at buildbot.pypy.org
Mon Jun 9 20:01:10 CEST 2014
Author: Armin Rigo <arigo at tunes.org>
Branch:
Changeset: r72007:b91e7ae78e03
Date: 2014-06-09 20:00 +0200
http://bitbucket.org/pypy/pypy/changeset/b91e7ae78e03/
Log: Add the original failure as a test.
diff --git a/rpython/rlib/rsre/test/test_match.py b/rpython/rlib/rsre/test/test_match.py
--- a/rpython/rlib/rsre/test/test_match.py
+++ b/rpython/rlib/rsre/test/test_match.py
@@ -267,3 +267,8 @@
match = rsre_core.match(r, "abbbbbbbbbcdef")
assert match
assert match.match_end == 11
+
+ def test_empty_maxuntil(self):
+ r = get_code("\\{\\{((?:.*?)+)\\}\\}")
+ match = rsre_core.match(r, "{{a}}{{b}}")
+ assert match.group(1) == "a"
More information about the pypy-commit
mailing list