[Python-checkins] r77072 - in python/branches/py3k: Lib/test/test_long.py

mark.dickinson python-checkins at python.org
Sun Dec 27 22:34:05 CET 2009


Author: mark.dickinson
Date: Sun Dec 27 22:34:05 2009
New Revision: 77072

Log:
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.
........


Modified:
   python/branches/py3k/   (props changed)
   python/branches/py3k/Lib/test/test_long.py

Modified: python/branches/py3k/Lib/test/test_long.py
==============================================================================
--- python/branches/py3k/Lib/test/test_long.py	(original)
+++ python/branches/py3k/Lib/test/test_long.py	Sun Dec 27 22:34:05 2009
@@ -679,9 +679,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