diff --git a/Lib/test/test_exceptions.py b/Lib/test/test_exceptions.py index 5526fb77eb8..216064161cb 100644 --- a/Lib/test/test_exceptions.py +++ b/Lib/test/test_exceptions.py @@ -473,6 +473,12 @@ class ExceptionTests(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,)") + # Helper class used by TestSameStrAndUnicodeMsg class ExcWithOverriddenStr(Exception):