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 b90dd6c commit e2382d6Copy full SHA for e2382d6
exercises/practice/binary/binary_test.py
@@ -50,7 +50,7 @@ def test_invalid_binary_numbers_with_text(self):
50
self.assertEqual(err.exception.args[0], "Invalid binary literal: '10nope'")
51
52
def test_invalid_binary_text_with_numbers(self):
53
- with self.assertRaises(ValueError):
+ with self.assertRaises(ValueError) as err:
54
parse_binary("nope10")
55
self.assertEqual(type(err.exception), ValueError)
56
0 commit comments