summaryrefslogtreecommitdiff
path: root/Lib/test/test_set.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-06-21 11:11:17 +0300
committerGitHub <noreply@github.com>2020-06-21 11:11:17 +0300
commitf9bab74d5b34c64cf061e1629ff5f3092a4ca9b3 (patch)
tree6300c872eefba9992cebe7ec5efccaa8ea0d8347 /Lib/test/test_set.py
parent19fcffa92773e008e4f5efb80047420a0cfafeec (diff)
downloadcpython-git-f9bab74d5b34c64cf061e1629ff5f3092a4ca9b3.tar.gz
bpo-41055: Remove outdated tests for the tp_print slot. (GH-21006)
Diffstat (limited to 'Lib/test/test_set.py')
-rw-r--r--Lib/test/test_set.py25
1 files changed, 0 insertions, 25 deletions
diff --git a/Lib/test/test_set.py b/Lib/test/test_set.py
index e4766ab190..9851a99898 100644
--- a/Lib/test/test_set.py
+++ b/Lib/test/test_set.py
@@ -317,20 +317,6 @@ class TestJointOps:
name = repr(s).partition('(')[0] # strip class name
self.assertEqual(repr(s), '%s({%s(...)})' % (name, name))
- def test_cyclical_print(self):
- w = ReprWrapper()
- s = self.thetype([w])
- w.value = s
- fo = open(support.TESTFN, "w")
- try:
- fo.write(str(s))
- fo.close()
- fo = open(support.TESTFN, "r")
- self.assertEqual(fo.read(), repr(s))
- finally:
- fo.close()
- support.unlink(support.TESTFN)
-
def test_do_not_rehash_dict_keys(self):
n = 10
d = dict.fromkeys(map(HashCountingInt, range(n)))
@@ -803,17 +789,6 @@ class TestBasicOps:
sorted_repr_values.sort()
self.assertEqual(result, sorted_repr_values)
- def test_print(self):
- try:
- fo = open(support.TESTFN, "w")
- fo.write(str(self.set))
- fo.close()
- fo = open(support.TESTFN, "r")
- self.assertEqual(fo.read(), repr(self.set))
- finally:
- fo.close()
- support.unlink(support.TESTFN)
-
def test_length(self):
self.assertEqual(len(self.set), self.length)