summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sre.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-08-01 13:01:43 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2000-08-01 13:01:43 (GMT)
commitc2ed621d7564494c908329932f87cd2954c8af72 (patch)
tree96fe5c64d8bf856a6333b34950a0c6be6ab0f969 /Lib/test/test_sre.py
parenta4e9a333826297a87aaa77e2bbf78a2048d4c061 (diff)
downloadcpython-c2ed621d7564494c908329932f87cd2954c8af72.zip
cpython-c2ed621d7564494c908329932f87cd2954c8af72.tar.gz
cpython-c2ed621d7564494c908329932f87cd2954c8af72.tar.bz2
-- SRE 0.9.8: updated test scripts
Diffstat (limited to 'Lib/test/test_sre.py')
-rw-r--r--Lib/test/test_sre.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/Lib/test/test_sre.py b/Lib/test/test_sre.py
index a22c51a..52e5021 100644
--- a/Lib/test/test_sre.py
+++ b/Lib/test/test_sre.py
@@ -152,9 +152,10 @@ try:
assert sre.split("(?::*)", ":a:b::c") == ['', 'a', 'b', 'c']
assert sre.split("(:)*", ":a:b::c") == ['', ':', 'a', ':', 'b', ':', 'c']
assert sre.split("([b:]+)", ":a:b::c") == ['', ':', 'a', ':b::', 'c']
-# FIXME: group problem
-# assert sre.split("(b)|(:+)", ":a:b::c") == \
-# ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
+## print sre.split("(b)|(:+)", ":a:b::c")
+## print ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
+## assert sre.split("(b)|(:+)", ":a:b::c") == \
+## ['', None, ':', 'a', None, ':', '', 'b', None, '', None, '::', 'c']
assert sre.split("(?:b)|(?::+)", ":a:b::c") == ['', 'a', '', '', 'c']
except AssertionError:
raise TestFailed, "sre.split"
@@ -377,8 +378,8 @@ for t in tests:
if result==None:
print '=== Fails on locale-sensitive match', t
- # Try the match with UNICODE enabled, and check that it
- # still succeeds.
+ # Try the match with UNICODE locale enabled, and check
+ # that it still succeeds.
obj=sre.compile(pattern, sre.UNICODE)
result=obj.search(s)
if result==None: