summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorWalter Dörwald <walter@livinglogic.de>2007-06-07 12:40:09 (GMT)
committerWalter Dörwald <walter@livinglogic.de>2007-06-07 12:40:09 (GMT)
commita92b446e7e1a9d7e1a564e1ba716331ec03d4470 (patch)
tree9806e40f7fa425a1c7c404fd943b985d6a285bfc /Lib/test
parent092a225a4de9b168e541e3c57b1bee075f6382a8 (diff)
downloadcpython-a92b446e7e1a9d7e1a564e1ba716331ec03d4470.zip
cpython-a92b446e7e1a9d7e1a564e1ba716331ec03d4470.tar.gz
cpython-a92b446e7e1a9d7e1a564e1ba716331ec03d4470.tar.bz2
Fix test_deque.py: Read and write file in text mode,
so that read() returns a unicode object, which can be compared directly to the repr() result.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_deque.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_deque.py b/Lib/test/test_deque.py
index e2254d6..63391af 100644
--- a/Lib/test/test_deque.py
+++ b/Lib/test/test_deque.py
@@ -244,10 +244,10 @@ class TestBasic(unittest.TestCase):
d = deque(range(200))
d.append(d)
try:
- fo = open(test_support.TESTFN, "wb")
+ fo = open(test_support.TESTFN, "w")
fo.write(str(d))
fo.close()
- fo = open(test_support.TESTFN, "rb")
+ fo = open(test_support.TESTFN, "r")
self.assertEqual(fo.read(), repr(d))
finally:
fo.close()