mirror of
https://github.com/python/cpython.git
synced 2024-11-25 02:44:06 +08:00
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. ........
This commit is contained in:
parent
a4e1506e7f
commit
2cfda806f8
@ -679,9 +679,8 @@ class LongTest(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
Block a user