summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sre.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2001-03-22 23:48:28 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2001-03-22 23:48:28 (GMT)
commit015415ed149a8bcdcbea95a1b486a818a3ae59e7 (patch)
tree359de25f90696105dcfe0afb889b8e9cde739741 /Lib/test/test_sre.py
parent816e149c8512c1555516d31facb46b2b7c127b7a (diff)
downloadcpython-015415ed149a8bcdcbea95a1b486a818a3ae59e7.zip
cpython-015415ed149a8bcdcbea95a1b486a818a3ae59e7.tar.gz
cpython-015415ed149a8bcdcbea95a1b486a818a3ae59e7.tar.bz2
SRE 2.1b2: increase the chances that the sre test works on other
machines...
Diffstat (limited to 'Lib/test/test_sre.py')
-rw-r--r--Lib/test/test_sre.py9
1 files changed, 3 insertions, 6 deletions
diff --git a/Lib/test/test_sre.py b/Lib/test/test_sre.py
index 031cda6..f133c98 100644
--- a/Lib/test/test_sre.py
+++ b/Lib/test/test_sre.py
@@ -243,12 +243,9 @@ if verbose:
# Try nasty case that overflows the straightforward recursive
# implementation of repeated groups.
-test(r"""sre.match(r'(x)*', 50000*'x').span()""",
- (0, 50000), RuntimeError)
-test(r"""sre.match(r'(x)*y', 50000*'x'+'y').span()""",
- (0, 50001), RuntimeError)
-test(r"""sre.match(r'(x)*?y', 50000*'x'+'y').span()""",
- (0, 50001)) # this works in 2.1
+test("sre.match('(x)*', 50000*'x').span()", (0, 50000), RuntimeError)
+test("sre.match(r'(x)*y', 50000*'x'+'y').span()", (0, 50001), RuntimeError)
+test("sre.match(r'(x)*?y', 50000*'x'+'y').span()", (0, 50001), RuntimeError)
from re_tests import *