From: Barry Warsaw <barry@python.org>
Date: Tue, 31 Dec 2002 19:27:45 +0000 (+0000)
Subject: Make two tests non-locale-dependent
X-Git-Tag: v2.3c1~2689
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=b1dcbd223e7a3d13c3cdbc57f4c88793d8b646ef;p=python

Make two tests non-locale-dependent
---

diff --git a/Lib/bsddb/test/test_recno.py b/Lib/bsddb/test/test_recno.py
index a46dd91bd0..b3a999ea5f 100644
--- a/Lib/bsddb/test/test_recno.py
+++ b/Lib/bsddb/test/test_recno.py
@@ -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