mirror of
https://github.com/python/cpython.git
synced 2025-08-31 05:58:33 +00:00
Get rid of most of the rest of coerce (slot is still there for now).
This commit is contained in:
parent
79212998a8
commit
4886cc331f
19 changed files with 131 additions and 497 deletions
|
@ -92,9 +92,6 @@ class ComplexTest(unittest.TestCase):
|
|||
self.assertAlmostEqual(complex.__floordiv__(3+0j, 1.5+0j), 2)
|
||||
self.assertRaises(ZeroDivisionError, complex.__floordiv__, 3+0j, 0+0j)
|
||||
|
||||
def test_coerce(self):
|
||||
self.assertRaises(OverflowError, complex.__coerce__, 1+1j, 1L<<10000)
|
||||
|
||||
def test_richcompare(self):
|
||||
self.assertRaises(OverflowError, complex.__eq__, 1+1j, 1L<<10000)
|
||||
self.assertEqual(complex.__lt__(1+1j, None), NotImplemented)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue