Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fc3436b commit 292aa0dCopy full SHA for 292aa0d
1 file changed
Lib/test/test_set.py
@@ -272,10 +272,10 @@ def test_cyclical_print(self):
272
s = self.thetype([w])
273
w.value = s
274
try:
275
- fo = open(test_support.TESTFN, "wb")
+ fo = open(test_support.TESTFN, "w")
276
fo.write(str(s))
277
fo.close()
278
- fo = open(test_support.TESTFN, "rb")
+ fo = open(test_support.TESTFN, "r")
279
self.assertEqual(fo.read(), repr(s))
280
finally:
281
@@ -620,10 +620,10 @@ def test_repr(self):
620
621
def test_print(self):
622
623
624
fo.write(str(self.set))
625
626
627
self.assertEqual(fo.read(), repr(self.set))
628
629
0 commit comments