From f9bab74d5b34c64cf061e1629ff5f3092a4ca9b3 Mon Sep 17 00:00:00 2001 From: Serhiy Storchaka Date: Sun, 21 Jun 2020 11:11:17 +0300 Subject: bpo-41055: Remove outdated tests for the tp_print slot. (GH-21006) --- Lib/test/test_set.py | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'Lib/test/test_set.py') 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) -- cgit v1.2.1