summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>2007-05-24 18:00:35 (GMT)
committerGuido van Rossum <guido@python.org>2007-05-24 18:00:35 (GMT)
commit292aa0d80631b3239a46c9f90718f92a8b950b3b (patch)
tree1b11cdb7b209f15f68032e71dd1b731902af38f6 /Lib/test
parentfc3436becdc2b0c214afc2d9190e4114fb1a5254 (diff)
downloadcpython-292aa0d80631b3239a46c9f90718f92a8b950b3b.zip
cpython-292aa0d80631b3239a46c9f90718f92a8b950b3b.tar.gz
cpython-292aa0d80631b3239a46c9f90718f92a8b950b3b.tar.bz2
Fix test_set.
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_set.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index 3b62478..e411025 100644
--- a/Lib/test/test_set.py
+++ b/Lib/test/test_set.py
@@ -272,10 +272,10 @@ class TestJointOps(unittest.TestCase):
s = self.thetype([w])
w.value = s
try:
- fo = open(test_support.TESTFN, "wb")
+ fo = open(test_support.TESTFN, "w")
fo.write(str(s))
fo.close()
- fo = open(test_support.TESTFN, "rb")
+ fo = open(test_support.TESTFN, "r")
self.assertEqual(fo.read(), repr(s))
finally:
fo.close()
@@ -620,10 +620,10 @@ class TestBasicOps(unittest.TestCase):
def test_print(self):
try:
- fo = open(test_support.TESTFN, "wb")
+ fo = open(test_support.TESTFN, "w")
fo.write(str(self.set))
fo.close()
- fo = open(test_support.TESTFN, "rb")
+ fo = open(test_support.TESTFN, "r")
self.assertEqual(fo.read(), repr(self.set))
finally:
fo.close()