mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
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 changed files with 1 additions and 3 deletions
|
@ -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()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue