[pypy-svn] pypy default: A bug in the regexp matching... (issue #627)

arigo commits-noreply at bitbucket.org
Wed Jan 26 16:54:02 CET 2011


Author: Armin Rigo <arigo at tunes.org>
Branch: 
Changeset: r41355:f01b4b7c62c5
Date: 2011-01-26 16:16 +0100
http://bitbucket.org/pypy/pypy/changeset/f01b4b7c62c5/

Log:	A bug in the regexp matching... (issue #627)

diff --git a/pypy/rlib/rsre/test/test_match.py b/pypy/rlib/rsre/test/test_match.py
--- a/pypy/rlib/rsre/test/test_match.py
+++ b/pypy/rlib/rsre/test/test_match.py
@@ -275,3 +275,7 @@
         assert not rsre_core.match(r, "abc", end=1)
         assert not rsre_core.match(r, "abc", end=0)
         assert not rsre_core.match(r, "abc", end=-1)
+
+    def test_match_bug1(self):
+        r = get_code(r'(.*?x?)?$')
+        assert rsre_core.match(r, "abcx")


More information about the Pypy-commit mailing list