Commit 2f8dfcd6 authored by Benjamin Peterson's avatar Benjamin Peterson

add a test for an assertion with tuple msg

parent 065836ec
......@@ -130,6 +130,13 @@ class TestRaise(unittest.TestCase):
with self.assertRaises(TypeError):
raise MyException
def test_assert_with_tuple_arg(self):
try:
assert False, (3,)
except AssertionError as e:
self.assertEqual(str(e), "(3,)")
class TestCause(unittest.TestCase):
def test_invalid_cause(self):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment