mirror of
https://github.com/python/cpython.git
synced 2025-12-04 16:43:27 +00:00
Fix test_set.
This commit is contained in:
parent
fc3436becd
commit
292aa0d806
1 changed files with 4 additions and 4 deletions
|
|
@ -272,10 +272,10 @@ class TestJointOps(unittest.TestCase):
|
||||||
s = self.thetype([w])
|
s = self.thetype([w])
|
||||||
w.value = s
|
w.value = s
|
||||||
try:
|
try:
|
||||||
fo = open(test_support.TESTFN, "wb")
|
fo = open(test_support.TESTFN, "w")
|
||||||
fo.write(str(s))
|
fo.write(str(s))
|
||||||
fo.close()
|
fo.close()
|
||||||
fo = open(test_support.TESTFN, "rb")
|
fo = open(test_support.TESTFN, "r")
|
||||||
self.assertEqual(fo.read(), repr(s))
|
self.assertEqual(fo.read(), repr(s))
|
||||||
finally:
|
finally:
|
||||||
fo.close()
|
fo.close()
|
||||||
|
|
@ -620,10 +620,10 @@ class TestBasicOps(unittest.TestCase):
|
||||||
|
|
||||||
def test_print(self):
|
def test_print(self):
|
||||||
try:
|
try:
|
||||||
fo = open(test_support.TESTFN, "wb")
|
fo = open(test_support.TESTFN, "w")
|
||||||
fo.write(str(self.set))
|
fo.write(str(self.set))
|
||||||
fo.close()
|
fo.close()
|
||||||
fo = open(test_support.TESTFN, "rb")
|
fo = open(test_support.TESTFN, "r")
|
||||||
self.assertEqual(fo.read(), repr(self.set))
|
self.assertEqual(fo.read(), repr(self.set))
|
||||||
finally:
|
finally:
|
||||||
fo.close()
|
fo.close()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue