From: Guido van Rossum Date: Wed, 11 Oct 2000 21:34:53 +0000 (+0000) Subject: Jack Jansen reported that the regression test failed on the Mac where X-Git-Tag: v2.0~99 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4bbea05c4e0dcef4c6bb8d83231126c53b7d99d5;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Lib/test/test_StringIO.py b/Lib/test/test_StringIO.py index f2d6dbf7be49..b1fca84e70d4 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()