diff options
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_math.py | 4 |
1 files 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 |