mirror of
https://github.com/python/cpython.git
synced 2025-08-01 15:43:13 +00:00
Remove e assertIs definitions and use correct assert* methods.
This commit is contained in:
parent
4cc80ca921
commit
e3467d5c96
6 changed files with 28 additions and 45 deletions
|
@ -72,9 +72,6 @@ class ComplexTest(unittest.TestCase):
|
|||
self.assertCloseAbs(x.real, y.real, eps)
|
||||
self.assertCloseAbs(x.imag, y.imag, eps)
|
||||
|
||||
def assertIs(self, a, b):
|
||||
self.assertTrue(a is b)
|
||||
|
||||
def check_div(self, x, y):
|
||||
"""Compute complex z=x*y, and check that z/x==y and z/y==x."""
|
||||
z = x * y
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue