summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_long.py
diff options
context:
space:
mode:
authorMark Dickinson <dickinsm@gmail.com>2009-12-27 21:34:05 (GMT)
committerMark Dickinson <dickinsm@gmail.com>2009-12-27 21:34:05 (GMT)
commit2cfda806f8a2ae1ccf6b05790a7baaae91262080 (patch)
tree46eb3d03b06589f2179daa2ee326573fe80f9548 /Lib/test/test_long.py
parenta4e1506e7f6a39c5226f08847d041568be1140e2 (diff)
downloadcpython-2cfda806f8a2ae1ccf6b05790a7baaae91262080.zip
cpython-2cfda806f8a2ae1ccf6b05790a7baaae91262080.tar.gz
cpython-2cfda806f8a2ae1ccf6b05790a7baaae91262080.tar.bz2
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. ........
Diffstat (limited to 'Lib/test/test_long.py')
-rw-r--r--Lib/test/test_long.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index 4096f1f..9974a5f 100644
--- a/Lib/test/test_long.py
+++ b/Lib/test/test_long.py
@@ -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):