Two tests fixed with one fix.

This commit is contained in:
Guido van Rossum 2007-02-09 22:11:20 +00:00
parent c420b2f3ee
commit 374812c5af
1 changed files with 1 additions and 1 deletions

View File

@ -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))