summaryrefslogtreecommitdiffstats
path: root/Lib/test
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test')
-rw-r--r--Lib/test/test_math.py4
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