[pypy-svn] r16728 - pypy/dist/pypy/module/_sre/test

nik at codespeak.net nik at codespeak.net
Sat Aug 27 12:46:54 CEST 2005


Author: nik
Date: Sat Aug 27 12:46:53 2005
New Revision: 16728

Modified:
   pypy/dist/pypy/module/_sre/test/test_app_sre.py
Log:
added failing test uncovered by compliancy tests.


Modified: pypy/dist/pypy/module/_sre/test/test_app_sre.py
==============================================================================
--- pypy/dist/pypy/module/_sre/test/test_app_sre.py	(original)
+++ pypy/dist/pypy/module/_sre/test/test_app_sre.py	Sat Aug 27 12:46:53 2005
@@ -451,6 +451,13 @@
         assert re.search(r"b(?<!\d.)a", "ba")
         assert not re.search(r"b(?<!\d.)a", "11ba")
 
+    def test_bug_725149(self):
+        # mark_stack_base restoring before restoring marks
+        # test copied from CPython test
+        import re
+        assert re.match('(a)(?:(?=(b)*)c)*', 'abb').groups() == ('a', None)
+        assert re.match('(a)((?!(b)*))*', 'abb').groups() == ('a', None, None)
+
 
 class AppTestMarksStack:
 



More information about the Pypy-commit mailing list