mirror of
https://github.com/python/cpython
synced 2024-10-08 22:19:49 +00:00
Make two tests non-locale-dependent
This commit is contained in:
parent
f15fb2926b
commit
b1dcbd223e
|
@ -31,7 +31,7 @@ def test01_basic(self):
|
||||||
d = db.DB()
|
d = db.DB()
|
||||||
d.open(self.filename, db.DB_RECNO, db.DB_CREATE)
|
d.open(self.filename, db.DB_RECNO, db.DB_CREATE)
|
||||||
|
|
||||||
for x in string.letters:
|
for x in string.ascii_letters:
|
||||||
recno = d.append(x * 60)
|
recno = d.append(x * 60)
|
||||||
assert type(recno) == type(0)
|
assert type(recno) == type(0)
|
||||||
assert recno >= 1
|
assert recno >= 1
|
||||||
|
@ -228,7 +228,7 @@ def test03_FixedLength(self):
|
||||||
d.set_re_pad(45) # ...test both int and char
|
d.set_re_pad(45) # ...test both int and char
|
||||||
d.open(self.filename, db.DB_RECNO, db.DB_CREATE)
|
d.open(self.filename, db.DB_RECNO, db.DB_CREATE)
|
||||||
|
|
||||||
for x in string.letters:
|
for x in string.ascii_letters:
|
||||||
d.append(x * 35) # These will be padded
|
d.append(x * 35) # These will be padded
|
||||||
|
|
||||||
d.append('.' * 40) # this one will be exact
|
d.append('.' * 40) # this one will be exact
|
||||||
|
|
Loading…
Reference in a new issue