[Python-3000-checkins] r55558 - python/branches/py3k-struni/Lib/test/test_set.py

guido.van.rossum python-3000-checkins at python.org
Thu May 24 20:00:36 CEST 2007


Author: guido.van.rossum
Date: Thu May 24 20:00:35 2007
New Revision: 55558

Modified:
   python/branches/py3k-struni/Lib/test/test_set.py
Log:
Fix test_set.

Modified: python/branches/py3k-struni/Lib/test/test_set.py
==============================================================================
--- python/branches/py3k-struni/Lib/test/test_set.py	(original)
+++ python/branches/py3k-struni/Lib/test/test_set.py	Thu May 24 20:00:35 2007
@@ -272,10 +272,10 @@
         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 @@
 
     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()


More information about the Python-3000-checkins mailing list