diff options
author | Guido van Rossum <guido@python.org> | 2000-10-11 21:34:53 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2000-10-11 21:34:53 (GMT) |
commit | 4bbea05c4e0dcef4c6bb8d83231126c53b7d99d5 (patch) | |
tree | d3598eeec81385571594a5835ef175be9b4c9f73 /Lib/test | |
parent | 7e3e1c1ece9173b10b2e89848f814d0c346a869d (diff) | |
download | cpython-4bbea05c4e0dcef4c6bb8d83231126c53b7d99d5.zip cpython-4bbea05c4e0dcef4c6bb8d83231126c53b7d99d5.tar.gz cpython-4bbea05c4e0dcef4c6bb8d83231126c53b7d99d5.tar.bz2 |
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')
-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 f2d6dbf..b1fca84 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() |