Use a more idiomatic check in check_truediv.

This commit is contained in:
Mark Dickinson 2009-12-27 21:31:50 +00:00
parent 2401c03746
commit e079636853
1 changed files with 2 additions and 3 deletions

View File

@ -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):