mirror of https://github.com/python/cpython
Use a more idiomatic check in check_truediv.
This commit is contained in:
parent
2401c03746
commit
e079636853
|
@ -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):
|
||||
|
|
Loading…
Reference in New Issue