From bace6764fac7800883029d7f34dc56d17a1530a0 Mon Sep 17 00:00:00 2001 From: Benjamin Peterson Date: Mon, 5 Jul 2010 17:13:21 +0000 Subject: be more generous to implementations that have implemented correctly --- Lib/test/test_math.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 3049ef1..680c6ac 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -876,8 +876,8 @@ class MathTests(unittest.TestCase): 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 -- cgit v0.12