summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2000-10-11 21:34:53 (GMT)
committerGuido van Rossum <guido@python.org>2000-10-11 21:34:53 (GMT)
commit4bbea05c4e0dcef4c6bb8d83231126c53b7d99d5 (patch)
treed3598eeec81385571594a5835ef175be9b4c9f73 /Lib/test
parent7e3e1c1ece9173b10b2e89848f814d0c346a869d (diff)
downloadcpython-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.py4
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()