]> granicus.if.org Git - python/commitdiff
Jack Jansen reported that the regression test failed on the Mac where
authorGuido van Rossum <guido@python.org>
Wed, 11 Oct 2000 21:34:53 +0000 (21:34 +0000)
committerGuido van Rossum <guido@python.org>
Wed, 11 Oct 2000 21:34:53 +0000 (21:34 +0000)
string.letters was much more than expected.

Solution: explicit is better than implicit; don't rely on
string.letters.

Lib/test/test_StringIO.py

index f2d6dbf7be493499dcdb4d91c6957c289f3cc03b..b1fca84e70d4f1eb13bf73db51b6a3408f8fc679 100644 (file)
@@ -1,9 +1,7 @@
 # Tests StringIO and cStringIO
 
-import string
-
 def do_test(module):
-    s = (string.letters+'\n')*5
+    s = ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"+'\n')*5
     f = module.StringIO(s)
     print f.read(10)
     print f.readline()