summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Lib/test/test_long_future.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_long_future.py b/Lib/test/test_long_future.py
index f863d527ae..76c3bfbdbc 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):