mirror of
https://github.com/AdaCore/cpython.git
synced 2026-02-12 12:57:15 -08:00
Remove __floordiv__ test, as it's deprecated.
This commit is contained in:
@@ -59,8 +59,6 @@ class ComplexTest(unittest.TestCase):
|
||||
self.assertClose(q, y)
|
||||
q = z.__truediv__(x)
|
||||
self.assertClose(q, y)
|
||||
q2 = z.__floordiv__(x)
|
||||
self.assertClose(q2, math.floor(q.real)+0j)
|
||||
if y != 0:
|
||||
q = z / y
|
||||
self.assertClose(q, x)
|
||||
@@ -68,8 +66,6 @@ class ComplexTest(unittest.TestCase):
|
||||
self.assertClose(q, x)
|
||||
q = z.__truediv__(y)
|
||||
self.assertClose(q, x)
|
||||
q2 = z.__floordiv__(y)
|
||||
self.assertClose(q2, math.floor(q.real)+0j)
|
||||
|
||||
def test_div(self):
|
||||
simple_real = [float(i) for i in xrange(-5, 6)]
|
||||
|
||||
Reference in New Issue
Block a user