[Python-checkins] CVS: python/dist/src/Lib/test test_sre.py,1.1,1.2
Fredrik Lundh
python-dev@python.org
Fri, 30 Jun 2000 00:51:01 -0700
Update of /cvsroot/python/python/dist/src/Lib/test
In directory slayer.i.sourceforge.net:/tmp/cvs-serv24009/Lib/test
Modified Files:
test_sre.py
Log Message:
- pedantic: make sure "python -t" doesn't complain...
Index: test_sre.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/test/test_sre.py,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -r1.1 -r1.2
*** test_sre.py 2000/06/30 07:08:20 1.1
--- test_sre.py 2000/06/30 07:50:59 1.2
***************
*** 1,3 ****
! # FIXME: this is basically test_re.py, with a few
import sys
--- 1,3 ----
! # FIXME: this is basically test_re.py, with a few minor changes
import sys
***************
*** 338,342 ****
else:
print '=== Failed incorrectly', t
! continue
# Try the match on a unicode string, and check that it
--- 338,342 ----
else:
print '=== Failed incorrectly', t
! continue
# Try the match on a unicode string, and check that it
***************
*** 360,366 ****
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
# Try the match with IGNORECASE enabled, and check that it
--- 360,366 ----
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
# Try the match with IGNORECASE enabled, and check that it