summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_complex.py
diff options
context:
space:
mode:
authorSerhiy Storchaka <storchaka@gmail.com>2020-06-21 08:11:17 (GMT)
committerGitHub <noreply@github.com>2020-06-21 08:11:17 (GMT)
commitf9bab74d5b34c64cf061e1629ff5f3092a4ca9b3 (patch)
tree6300c872eefba9992cebe7ec5efccaa8ea0d8347 /Lib/test/test_complex.py
parent19fcffa92773e008e4f5efb80047420a0cfafeec (diff)
downloadcpython-f9bab74d5b34c64cf061e1629ff5f3092a4ca9b3.zip
cpython-f9bab74d5b34c64cf061e1629ff5f3092a4ca9b3.tar.gz
cpython-f9bab74d5b34c64cf061e1629ff5f3092a4ca9b3.tar.bz2
bpo-41055: Remove outdated tests for the tp_print slot. (GH-21006)
Diffstat (limited to 'Lib/test/test_complex.py')
-rw-r--r--Lib/test/test_complex.py16
1 files changed, 0 insertions, 16 deletions
diff --git a/Lib/test/test_complex.py b/Lib/test/test_complex.py
index dee5c7f..d1f241f 100644
--- a/Lib/test/test_complex.py
+++ b/Lib/test/test_complex.py
@@ -500,22 +500,6 @@ class ComplexTest(unittest.TestCase):
def test_neg(self):
self.assertEqual(-(1+6j), -1-6j)
- def test_file(self):
- a = 3.33+4.43j
- b = 5.1+2.3j
-
- fo = None
- try:
- fo = open(support.TESTFN, "w")
- print(a, b, file=fo)
- fo.close()
- fo = open(support.TESTFN, "r")
- self.assertEqual(fo.read(), ("%s %s\n" % (a, b)))
- finally:
- if (fo is not None) and (not fo.closed):
- fo.close()
- support.unlink(support.TESTFN)
-
def test_getnewargs(self):
self.assertEqual((1+2j).__getnewargs__(), (1.0, 2.0))
self.assertEqual((1-2j).__getnewargs__(), (1.0, -2.0))