Commit 6c037ba7 authored by Walter Dörwald's avatar Walter Dörwald

Don't specify an encoding, let open figure out an

appropriate one.
parent 292aa0d8
......@@ -53,10 +53,10 @@ class CommonTest(seq_tests.CommonTest):
d.append(d)
d.append(400)
try:
fo = open(test_support.TESTFN, "w", encoding="ascii")
fo = open(test_support.TESTFN, "w")
fo.write(str(d))
fo.close()
fo = open(test_support.TESTFN, "r", encoding="ascii")
fo = open(test_support.TESTFN, "r")
self.assertEqual(fo.read(), repr(d))
finally:
fo.close()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment