Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_long.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 | 8180abbd07cb |
| children | 3c9232a684ae |
line wrap: on
line diff
--- a/Lib/test/test_long.py Sun Nov 21 00:43:28 2010 +0000 +++ b/Lib/test/test_long.py Sun Nov 21 01:30:29 2010 +0000 @@ -510,9 +510,9 @@ try: int(TruncReturnsNonIntegral()) except TypeError as e: - self.assertEquals(str(e), - "__trunc__ returned non-Integral" - " (type NonIntegral)") + self.assertEqual(str(e), + "__trunc__ returned non-Integral" + " (type NonIntegral)") else: self.fail("Failed to raise TypeError with %s" % ((base, trunc_result_base),))
