commit | 2f8dfcd6f4553d3d0063e32a1a9a3d98f5119dcd | [log] [tgz] |
---|---|---|
author | Benjamin Peterson <benjamin@python.org> | Thu Oct 27 08:20:01 2011 -0400 |
committer | Benjamin Peterson <benjamin@python.org> | Thu Oct 27 08:20:01 2011 -0400 |
tree | 2692101dc2d19ee1cbde4a03f6aa3f799577f7c4 | |
parent | 065836ec9c76ed7134562438f5a760a5e20b27e4 [diff] [blame] |
add a test for an assertion with tuple msg
diff --git a/Lib/test/test_raise.py b/Lib/test/test_raise.py index e02c1af..92c50c7 100644 --- a/Lib/test/test_raise.py +++ b/Lib/test/test_raise.py
@@ -130,6 +130,13 @@ 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):