Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_complex.py @ 66340:2beb25369289 3.1
Merged revisions 86596 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/branches/py3k
........
r86596 | ezio.melotti | 2010-11-20 21:04:17 +0200 (Sat, 20 Nov 2010) | 1 line
#9424: Replace deprecated assert* methods in the Python test suite.
........
| author | Ezio Melotti <ezio.melotti@gmail.com> |
|---|---|
| date | Sun, 21 Nov 2010 01:30:29 +0000 |
| parents | 398fa7b7753a |
| children | 3c9232a684ae |
line wrap: on
line diff
--- a/Lib/test/test_complex.py Sun Nov 21 00:43:28 2010 +0000 +++ b/Lib/test/test_complex.py Sun Nov 21 01:30:29 2010 +0000 @@ -404,8 +404,8 @@ def test_plus_minus_0j(self): # test that -0j and 0j literals are not identified z1, z2 = 0j, -0j - self.assertEquals(atan2(z1.imag, -1.), atan2(0., -1.)) - self.assertEquals(atan2(z2.imag, -1.), atan2(-0., -1.)) + self.assertEqual(atan2(z1.imag, -1.), atan2(0., -1.)) + self.assertEqual(atan2(z2.imag, -1.), atan2(-0., -1.)) @unittest.skipUnless(float.__getformat__("double").startswith("IEEE"), "test requires IEEE 754 doubles")
