]> granicus.if.org Git - python/commitdiff
Make two tests non-locale-dependent
authorBarry Warsaw <barry@python.org>
Tue, 31 Dec 2002 19:27:45 +0000 (19:27 +0000)
committerBarry Warsaw <barry@python.org>
Tue, 31 Dec 2002 19:27:45 +0000 (19:27 +0000)
Lib/bsddb/test/test_recno.py

index a46dd91bd01eb70e07ad5381e81c5ee99b6296df..b3a999ea5f94b06451fe9cc9b72320e29003dd00 100644 (file)
@@ -31,7 +31,7 @@ class SimpleRecnoTestCase(unittest.TestCase):
         d = db.DB()
         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)
             assert type(recno) == type(0)
             assert recno >= 1
@@ -228,7 +228,7 @@ class SimpleRecnoTestCase(unittest.TestCase):
         d.set_re_pad(45)  # ...test both int and char
         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('.' * 40)      # this one will be exact