diff options
Diffstat (limited to 'Lib')
-rw-r--r-- | Lib/test/test_math.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/test/test_math.py b/Lib/test/test_math.py index 9b2f55e..b476a39 100644 --- a/Lib/test/test_math.py +++ b/Lib/test/test_math.py @@ -867,6 +867,8 @@ class MathTests(unittest.TestCase): dist((1, 2, 3, 4), (5, 6, 7)) with self.assertRaises(ValueError): # Check dimension agree dist((1, 2, 3), (4, 5, 6, 7)) + with self.assertRaises(TypeError): # Rejects invalid types + dist("abc", "xyz") # Verify that the one dimensional case is equivalent to abs() for i in range(20): |