Commit e0796368 authored by Mark Dickinson's avatar Mark Dickinson

Use a more idiomatic check in check_truediv.

parent 2401c037
......@@ -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):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment