Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 065836e commit 2f8dfcdCopy full SHA for 2f8dfcd
1 file changed
Lib/test/test_raise.py
@@ -130,6 +130,13 @@ def __new__(cls, *args):
130
with self.assertRaises(TypeError):
131
raise MyException
132
133
+ def test_assert_with_tuple_arg(self):
134
+ try:
135
+ assert False, (3,)
136
+ except AssertionError as e:
137
+ self.assertEqual(str(e), "(3,)")
138
+
139
140
141
class TestCause(unittest.TestCase):
142
def test_invalid_cause(self):
0 commit comments