diff options
author | Guido van Rossum <guido@python.org> | 2000-10-11 21:34:53 +0000 |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-10-11 21:34:53 +0000 |
commit | 44555d0ba1e4b9b9338cef18c85201ab74b806d7 (patch) | |
tree | 2265e859815106936651d81d33dda9ed336b2416 /Lib/test/test_StringIO.py | |
parent | d646ea5507452ce48588a2198c2a70c8ec615724 (diff) | |
download | cpython-44555d0ba1e4b9b9338cef18c85201ab74b806d7.tar.gz |
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.
Diffstat (limited to 'Lib/test/test_StringIO.py')
-rw-r--r-- | Lib/test/test_StringIO.py | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/Lib/test/test_StringIO.py b/Lib/test/test_StringIO.py index f2d6dbf7be..b1fca84e70 100644 --- a/Lib/test/test_StringIO.py +++ b/Lib/test/test_StringIO.py @@ -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() |