Mercurial > cpython-lru_cache-weakref
diff Lib/test/test_long.py @ 57951:73365bb26fd6
Merged revisions 77071 via svnmerge from
svn+ssh://pythondev@svn.python.org/python/trunk
........
r77071 | mark.dickinson | 2009-12-27 21:31:50 +0000 (Sun, 27 Dec 2009) | 1 line
Use a more idiomatic check in check_truediv.
........
| author | Mark Dickinson <dickinsm@gmail.com> |
|---|---|
| date | Sun, 27 Dec 2009 21:34:05 +0000 |
| parents | dd6726c978c6 |
| children | f9c0c411f80c |
line wrap: on
line diff
--- a/Lib/test/test_long.py Sun Dec 27 19:03:31 2009 +0000 +++ b/Lib/test/test_long.py Sun Dec 27 21:34:05 2009 +0000 @@ -679,9 +679,8 @@ except ZeroDivisionError: got = 'zerodivision' - if expected != got: - self.fail("Incorrectly rounded division {}/{}: expected {!r}, " - "got {!r}.".format(a, b, expected, got)) + self.assertEqual(expected, got, "Incorrectly rounded division {}/{}: " + "expected {}, got {}".format(a, b, expected, got)) @requires_IEEE_754 def test_correctly_rounded_true_division(self):
