diff Lib/test/test_StringIO.py @ 15156:becd8a121464 legacy-trunk

Jack Jansen reported that the regression test failed on the Mac where string.letters was much more than expected. Solution: explicit is better than implicit; don't rely on string.letters.
author Guido van Rossum <guido@python.org>
date Wed, 11 Oct 2000 21:34:53 +0000
parents 3a04bebb666a
children ab1f90dd502f
line wrap: on
line diff
--- a/Lib/test/test_StringIO.py	Wed Oct 11 21:26:03 2000 +0000
+++ b/Lib/test/test_StringIO.py	Wed Oct 11 21:34:53 2000 +0000
@@ -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()