[Python-checkins] r77071 - python/trunk/Lib/test/test_long_future.py
mark.dickinson
python-checkins at python.org
Sun Dec 27 22:31:50 CET 2009
Author: mark.dickinson
Date: Sun Dec 27 22:31:50 2009
New Revision: 77071
Log:
Use a more idiomatic check in check_truediv.
Modified:
python/trunk/Lib/test/test_long_future.py
Modified: python/trunk/Lib/test/test_long_future.py
==============================================================================
--- python/trunk/Lib/test/test_long_future.py (original)
+++ python/trunk/Lib/test/test_long_future.py Sun Dec 27 22:31:50 2009
@@ -118,9 +118,8 @@
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):
More information about the Python-checkins
mailing list