Author: walter.doerwald
Date: Thu Jun 7 14:40:09 2007
New Revision: 55800
Modified:
python/branches/py3k-struni/Lib/test/test_deque.py
Log:
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.
Modified: python/branches/py3k-struni/Lib/test/test_deque.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_deque.py (original)
+++ python/branches/py3k-struni/Lib/test/test_deque.py Thu Jun 7 14:40:09 2007
@@ -244,10 +244,10 @@
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()
_______________________________________________
Python-3000-checkins mailing list
[email protected]
http://mail.python.org/mailman/listinfo/python-3000-checkins