mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
- pedantic: make sure "python -t" doesn't complain...
This commit is contained in:
parent
df02d0b3f0
commit
90a0791322
4 changed files with 576 additions and 576 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue