]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Fix test_set.
authorGuido van Rossum <guido@python.org>
Thu, 24 May 2007 18:00:35 +0000 (18:00 +0000)
committerGuido van Rossum <guido@python.org>
Thu, 24 May 2007 18:00:35 +0000 (18:00 +0000)
Lib/test/test_set.py

index 3b6247846e7438be9f7f6f995efabda6c160c7e3..e411025d12dd5fdc77cc9f836f2a82354adc122a 100644 (file)
@@ -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()