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.
This commit is contained in:
Guido van Rossum 2000-10-11 21:34:53 +00:00
parent 7e3e1c1ece
commit 4bbea05c4e
1 changed files with 1 additions and 3 deletions

View 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()