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 cb74f11 commit 0c773ffCopy full SHA for 0c773ff
bpython/test/test_autocomplete.py
@@ -34,6 +34,12 @@ def test_cw(self):
34
self.assertEqual(self.repl.cw(), 'datetime')
35
"""
36
37
+class TestSafeEval(unittest.TestCase):
38
+ def test_catches_syntax_error(self):
39
+ try:
40
+ autocomplete.safe_eval('1re',{})
41
+ except:
42
+ self.fail('safe_eval raises an error')
43
44
# make some fake files? Dependency inject? mock?
45
class TestFilenameCompletion(unittest.TestCase):
0 commit comments