We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 05a2d40 commit acdbb1aCopy full SHA for acdbb1a
bpython/test/test_autocomplete.py
@@ -14,8 +14,8 @@ def skip(f):
14
15
class TestSafeEval(unittest.TestCase):
16
def test_catches_syntax_error(self):
17
- with self.assertRaises(autocomplete.EvaluationError):
18
- autocomplete.safe_eval('1re',{})
+ self.assertRaises(autocomplete.EvaluationError,
+ autocomplete.safe_eval, '1re', {})
19
20
21
class TestFormatters(unittest.TestCase):
0 commit comments