diff options
author | Fredrik Lundh <fredrik@pythonware.com> | 2000-10-28 19:30:41 (GMT) |
---|---|---|
committer | Fredrik Lundh <fredrik@pythonware.com> | 2000-10-28 19:30:41 (GMT) |
commit | ebc37b28fa3fd66336116447b7c2b9b1c2614630 (patch) | |
tree | e977fafcc576a01ac2e489d556990628dd5f4f35 /Lib/test/test_sre.py | |
parent | 8fdb6383dc6ade2eba4c402af571f689bee2b610 (diff) | |
download | cpython-ebc37b28fa3fd66336116447b7c2b9b1c2614630.zip cpython-ebc37b28fa3fd66336116447b7c2b9b1c2614630.tar.gz cpython-ebc37b28fa3fd66336116447b7c2b9b1c2614630.tar.bz2 |
-- properly reset groups in findall (bug #117612)
-- fixed negative lookbehind to work correctly at the beginning
of the target string (bug #117242)
-- improved syntax check; you can no longer refer to a group
inside itself (bug #110866)
Diffstat (limited to 'Lib/test/test_sre.py')
-rw-r--r-- | Lib/test/test_sre.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_sre.py b/Lib/test/test_sre.py index 373efa0..b9692a1 100644 --- a/Lib/test/test_sre.py +++ b/Lib/test/test_sre.py @@ -167,6 +167,9 @@ test(r"""sre.findall(r"(:)(:*)", "a:b::c:::d")""", [(":", ""), (":", ":"), (":", "::")]) test(r"""sre.findall(r"(a)|(b)", "abc")""", [("a", ""), ("", "b")]) +# bug 117612 +test(r"""sre.findall(r"(a|(b))", "aba")""", [("a", ""),("b", "b"),("a", "")]) + if verbose: print "Running tests on sre.match" |