[Python-checkins] r82586 - python/branches/release27-maint/Lib/test/test_math.py

benjamin.peterson python-checkins at python.org
Mon Jul 5 19:13:21 CEST 2010


Author: benjamin.peterson
Date: Mon Jul  5 19:13:21 2010
New Revision: 82586

Log:
be more generous to implementations that have implemented correctly

Modified:
   python/branches/release27-maint/Lib/test/test_math.py

Modified: python/branches/release27-maint/Lib/test/test_math.py
==============================================================================
--- python/branches/release27-maint/Lib/test/test_math.py	(original)
+++ python/branches/release27-maint/Lib/test/test_math.py	Mon Jul  5 19:13:21 2010
@@ -876,8 +876,8 @@
 
         self.assertRaises(TypeError, math.trunc)
         self.assertRaises(TypeError, math.trunc, 1, 2)
-        # XXX: This is not ideal, but see the comment in math_trunc().
-        self.assertRaises(AttributeError, math.trunc, TestNoTrunc())
+        self.assertRaises((AttributeError, TypeError), math.trunc,
+                          TestNoTrunc())
 
         t = TestNoTrunc()
         t.__trunc__ = lambda *args: args


More information about the Python-checkins mailing list