summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sre.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-10-28 19:30:41 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2000-10-28 19:30:41 (GMT)
commitebc37b28fa3fd66336116447b7c2b9b1c2614630 (patch)
treee977fafcc576a01ac2e489d556990628dd5f4f35 /Lib/test/test_sre.py
parent8fdb6383dc6ade2eba4c402af571f689bee2b610 (diff)
downloadcpython-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.py3
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"