mirror of https://github.com/python/cpython
Don't specify an encoding, let open figure out an
appropriate one.
This commit is contained in:
parent
292aa0d806
commit
6c037ba7dc
|
@ -53,10 +53,10 @@ class CommonTest(seq_tests.CommonTest):
|
||||||
d.append(d)
|
d.append(d)
|
||||||
d.append(400)
|
d.append(400)
|
||||||
try:
|
try:
|
||||||
fo = open(test_support.TESTFN, "w", encoding="ascii")
|
fo = open(test_support.TESTFN, "w")
|
||||||
fo.write(str(d))
|
fo.write(str(d))
|
||||||
fo.close()
|
fo.close()
|
||||||
fo = open(test_support.TESTFN, "r", encoding="ascii")
|
fo = open(test_support.TESTFN, "r")
|
||||||
self.assertEqual(fo.read(), repr(d))
|
self.assertEqual(fo.read(), repr(d))
|
||||||
finally:
|
finally:
|
||||||
fo.close()
|
fo.close()
|
||||||
|
|
Loading…
Reference in New Issue