From: Guido van Rossum Date: Fri, 9 Feb 2007 22:11:20 +0000 (+0000) Subject: Two tests fixed with one fix. X-Git-Tag: v3.0a1~1243 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=374812c5afa1559b9b9e3e1f02e4150eccaa4f4e;p=python Two tests fixed with one fix. --- diff --git a/Lib/test/list_tests.py b/Lib/test/list_tests.py index 507506ec0d..a6180811b1 100644 --- a/Lib/test/list_tests.py +++ b/Lib/test/list_tests.py @@ -54,7 +54,7 @@ class CommonTest(seq_tests.CommonTest): d.append(400) try: fo = open(test_support.TESTFN, "wb") - print(d, end=' ', file=fo) + fo.write(str(d)) fo.close() fo = open(test_support.TESTFN, "rb") self.assertEqual(fo.read(), repr(d))