From: Mark Dickinson Date: Sun, 27 Dec 2009 21:34:05 +0000 (+0000) Subject: Merged revisions 77071 via svnmerge from X-Git-Tag: v3.2a1~1962 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=2cfda806f8a2ae1ccf6b05790a7baaae91262080;p=python 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. ........ --- diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py index 4096f1fadb..9974a5fa9f 100644 --- a/Lib/test/test_long.py +++ b/Lib/test/test_long.py @@ -679,9 +679,8 @@ class LongTest(unittest.TestCase): 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):