summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_sre.py
diff options
context:
space:
mode:
authorFredrik Lundh <fredrik@pythonware.com>2000-06-30 07:50:59 (GMT)
committerFredrik Lundh <fredrik@pythonware.com>2000-06-30 07:50:59 (GMT)
commit90a07913229ada1bb3011cfa08a1e56bca31daaf (patch)
tree753ada4e42f130dddf2af3bccfecaafd5987abbf /Lib/test/test_sre.py
parentdf02d0b3f0f438e6a773528010cc360d01b8f393 (diff)
downloadcpython-90a07913229ada1bb3011cfa08a1e56bca31daaf.zip
cpython-90a07913229ada1bb3011cfa08a1e56bca31daaf.tar.gz
cpython-90a07913229ada1bb3011cfa08a1e56bca31daaf.tar.bz2
- pedantic: make sure "python -t" doesn't complain...
Diffstat (limited to 'Lib/test/test_sre.py')
-rw-r--r--Lib/test/test_sre.py10
1 files changed, 5 insertions, 5 deletions
diff --git a/Lib/test/test_sre.py b/Lib/test/test_sre.py
index bc336c1..dc42ed1 100644
--- a/Lib/test/test_sre.py
+++ b/Lib/test/test_sre.py
@@ -1,4 +1,4 @@
-# FIXME: this is basically test_re.py, with a few
+# FIXME: this is basically test_re.py, with a few minor changes
import sys
sys.path=['.']+sys.path
@@ -337,7 +337,7 @@ for t in tests:
print repr(repl)+' should be '+repr(expected)
else:
print '=== Failed incorrectly', t
- continue
+ continue
# Try the match on a unicode string, and check that it
# still succeeds.
@@ -359,9 +359,9 @@ for t in tests:
if pattern[:2]!='\\B' and pattern[-2:]!='\\B':
obj=sre.compile(pattern)
- result=obj.search(s, result.start(0), result.end(0)+1)
- if result==None:
- print '=== Failed on range-limited match', t
+ result=obj.search(s, result.start(0), result.end(0)+1)
+ if result==None:
+ print '=== Failed on range-limited match', t
# Try the match with IGNORECASE enabled, and check that it
# still succeeds.