diff options
author | Mark Dickinson <dickinsm@gmail.com> | 2009-12-27 21:31:50 (GMT) |
---|---|---|
committer | Mark Dickinson <dickinsm@gmail.com> | 2009-12-27 21:31:50 (GMT) |
commit | e079636853d1536a6e161c25fc449d7f3c60ac75 (patch) | |
tree | 879cfaf1831f058e548e697b51228ffc3a676feb /Lib | |
parent | 2401c0374615bafdb959fd9a56b0f6115f6525c3 (diff) | |
download | cpython-e079636853d1536a6e161c25fc449d7f3c60ac75.zip cpython-e079636853d1536a6e161c25fc449d7f3c60ac75.tar.gz cpython-e079636853d1536a6e161c25fc449d7f3c60ac75.tar.bz2 |
Use a more idiomatic check in check_truediv.
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_long_future.py | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_long_future.py b/Lib/test/test_long_future.py index f863d52..76c3bfb 100644 --- a/Lib/test/test_long_future.py +++ b/Lib/test/test_long_future.py @@ -118,9 +118,8 @@ class TrueDivisionTests(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): |