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:
parent
7e3e1c1ece
commit
4bbea05c4e
|
@ -1,9 +1,7 @@
|
||||||
# Tests StringIO and cStringIO
|
# Tests StringIO and cStringIO
|
||||||
|
|
||||||
import string
|
|
||||||
|
|
||||||
def do_test(module):
|
def do_test(module):
|
||||||
s = (string.letters+'\n')*5
|
s = ("abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"+'\n')*5
|
||||||
f = module.StringIO(s)
|
f = module.StringIO(s)
|
||||||
print f.read(10)
|
print f.read(10)
|
||||||
print f.readline()
|
print f.readline()
|
||||||
|
|
Loading…
Reference in New Issue