Kaydet (Commit) 4bbea05c authored tarafından Guido van Rossum's avatar Guido van Rossum

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.
üst 7e3e1c1e
# 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()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment