diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/list_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/list_tests.py b/Lib/test/list_tests.py index a5790c3..5162f2e 100644 --- a/Lib/test/list_tests.py +++ b/Lib/test/list_tests.py @@ -53,10 +53,10 @@ class CommonTest(seq_tests.CommonTest): d.append(d) d.append(400) try: - fo = open(test_support.TESTFN, "wb") + fo = open(test_support.TESTFN, "w", encoding="ascii") fo.write(str(d)) fo.close() - fo = open(test_support.TESTFN, "rb") + fo = open(test_support.TESTFN, "r", encoding="ascii") self.assertEqual(fo.read(), repr(d)) finally: fo.close() |