Author: Matti Picus <[email protected]>
Branch: unicode-utf8
Changeset: r95667:6124fb988a60
Date: 2019-01-18 12:49 +0200
http://bitbucket.org/pypy/pypy/changeset/6124fb988a60/

Log:    add passing test

diff --git a/pypy/module/_sre/test/test_app_sre.py 
b/pypy/module/_sre/test/test_app_sre.py
--- a/pypy/module/_sre/test/test_app_sre.py
+++ b/pypy/module/_sre/test/test_app_sre.py
@@ -150,6 +150,11 @@
         import re, _weakref
         _weakref.ref(re.compile(r""))
 
+    def test_match_compat(self):
+        import re
+        res = re.match(r'(a)|(b)', 'b').start(1)
+        assert res == -1
+
 
 class AppTestSreMatch:
     spaceconfig = dict(usemodules=('array', ))
_______________________________________________
pypy-commit mailing list
[email protected]
https://mail.python.org/mailman/listinfo/pypy-commit

Reply via email to