From 4bbea05c4e0dcef4c6bb8d83231126c53b7d99d5 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Wed, 11 Oct 2000 21:34:53 +0000 Subject: [PATCH] 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. --- Lib/test/test_StringIO.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/Lib/test/test_StringIO.py b/Lib/test/test_StringIO.py index f2d6dbf7be4..b1fca84e70d 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()