Commit 2cfda806 authored by Mark Dickinson's avatar Mark Dickinson

Merged revisions 77071 via svnmerge from

svn+ssh://pythondev@svn.python.org/python/trunk

........
  r77071 | mark.dickinson | 2009-12-27 21:31:50 +0000 (Sun, 27 Dec 2009) | 1 line

  Use a more idiomatic check in check_truediv.
........
parent a4e1506e
...@@ -679,9 +679,8 @@ class LongTest(unittest.TestCase): ...@@ -679,9 +679,8 @@ class LongTest(unittest.TestCase):
except ZeroDivisionError: except ZeroDivisionError:
got = 'zerodivision' got = 'zerodivision'
if expected != got: self.assertEqual(expected, got, "Incorrectly rounded division {}/{}: "
self.fail("Incorrectly rounded division {}/{}: expected {!r}, " "expected {}, got {}".format(a, b, expected, got))
"got {!r}.".format(a, b, expected, got))
@requires_IEEE_754 @requires_IEEE_754
def test_correctly_rounded_true_division(self): 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