[Python-checkins] python/dist/src/Lib/bsddb/test test_recno.py,1.3,1.3.2.1

gvanrossum@users.sourceforge.net gvanrossum@users.sourceforge.net
2002年12月31日 11:42:51 -0800


Update of /cvsroot/python/python/dist/src/Lib/bsddb/test
In directory sc8-pr-cvs1:/tmp/cvs-serv22328
Modified Files:
 Tag: r23a1-branch
	test_recno.py 
Log Message:
Last-minute backport from trunk:
Make two tests non-locale-dependent
Index: test_recno.py
===================================================================
RCS file: /cvsroot/python/python/dist/src/Lib/bsddb/test/test_recno.py,v
retrieving revision 1.3
retrieving revision 1.3.2.1
diff -C2 -d -r1.3 -r1.3.2.1
*** test_recno.py	30 Dec 2002 20:52:08 -0000	1.3
--- test_recno.py	31 Dec 2002 19:42:48 -0000	1.3.2.1
***************
*** 32,36 ****
 d.open(self.filename, db.DB_RECNO, db.DB_CREATE)
 
! for x in string.letters:
 recno = d.append(x * 60)
 assert type(recno) == type(0)
--- 32,36 ----
 d.open(self.filename, db.DB_RECNO, db.DB_CREATE)
 
! for x in string.ascii_letters:
 recno = d.append(x * 60)
 assert type(recno) == type(0)
***************
*** 229,233 ****
 d.open(self.filename, db.DB_RECNO, db.DB_CREATE)
 
! for x in string.letters:
 d.append(x * 35) # These will be padded
 
--- 229,233 ----
 d.open(self.filename, db.DB_RECNO, db.DB_CREATE)
 
! for x in string.ascii_letters:
 d.append(x * 35) # These will be padded
 

AltStyle によって変換されたページ (->オリジナル) /