diff options
author | Martin v. Löwis <martin@v.loewis.de> | 2007-08-14 09:23:10 (GMT) |
---|---|---|
committer | Martin v. Löwis <martin@v.loewis.de> | 2007-08-14 09:23:10 (GMT) |
commit | 967f1e3b85ac239d6ae9900a62304392682131a7 (patch) | |
tree | 8e39c3f8fa0612742e71b1ac580c2729cf928195 /Lib/test | |
parent | 5424df2f7ee8cc0e8d177f0c035120a24addd455 (diff) | |
download | cpython-967f1e3b85ac239d6ae9900a62304392682131a7.zip cpython-967f1e3b85ac239d6ae9900a62304392682131a7.tar.gz cpython-967f1e3b85ac239d6ae9900a62304392682131a7.tar.bz2 |
Remove string.{letters,lowercase,uppercase}.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_csv.py | 2 | ||||
-rw-r--r-- | Lib/test/test_pkgimport.py | 4 | ||||
-rw-r--r-- | Lib/test/test_string.py | 6 |
3 files changed, 6 insertions, 6 deletions
diff --git a/Lib/test/test_csv.py b/Lib/test/test_csv.py index 21cc408..7ac52e3 100644 --- a/Lib/test/test_csv.py +++ b/Lib/test/test_csv.py @@ -645,7 +645,7 @@ class TestArrayWrites(unittest.TestCase): def test_char_write(self): import array, string - a = array.array('u', string.letters) + a = array.array('u', string.ascii_letters) with TemporaryFile("w+b") as fileobj: writer = csv.writer(fileobj, dialect="excel") diff --git a/Lib/test/test_pkgimport.py b/Lib/test/test_pkgimport.py index 8b5e3ad..789f4d3 100644 --- a/Lib/test/test_pkgimport.py +++ b/Lib/test/test_pkgimport.py @@ -7,7 +7,7 @@ class TestImport(unittest.TestCase): def __init__(self, *args, **kw): self.package_name = 'PACKAGE_' while self.package_name in sys.modules: - self.package_name += random.choose(string.letters) + self.package_name += random.choose(string.ascii_letters) self.module_name = self.package_name + '.foo' unittest.TestCase.__init__(self, *args, **kw) @@ -58,7 +58,7 @@ class TestImport(unittest.TestCase): # ...make up a variable name that isn't bound in __builtins__ var = 'a' while var in dir(__builtins__): - var += random.choose(string.letters) + var += random.choose(string.ascii_letters) # ...make a module that just contains that self.rewrite_file(var) diff --git a/Lib/test/test_string.py b/Lib/test/test_string.py index ab75f8c..3b21ebc 100644 --- a/Lib/test/test_string.py +++ b/Lib/test/test_string.py @@ -6,9 +6,9 @@ class ModuleTest(unittest.TestCase): def test_attrs(self): string.whitespace - string.lowercase - string.uppercase - string.letters + string.ascii_lowercase + string.ascii_uppercase + string.ascii_letters string.digits string.hexdigits string.octdigits |