diff options
author | Kevin (Kun) "Kassimo" Qian <kevinkassimo@gmail.com> | 2019-02-11 11:01:28 -0800 |
---|---|---|
committer | Ryan Dahl <ry@tinyclouds.org> | 2019-02-11 14:01:28 -0500 |
commit | 489c69f8e1c15c75461d24d91aa3e9c2a756e807 (patch) | |
tree | 7d1d68516742c75e7ac576662774e7718c55cecc /tools/repl_test.py | |
parent | d26655371b796cf5dad762d1b7154c25251cb41d (diff) |
REPL multiline support with recoverable errors (#1731)
Diffstat (limited to 'tools/repl_test.py')
-rw-r--r-- | tools/repl_test.py | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/tools/repl_test.py b/tools/repl_test.py index 2ce692b99..0958c18d0 100644 --- a/tools/repl_test.py +++ b/tools/repl_test.py @@ -84,6 +84,13 @@ class Repl(object): assertEqual(err, '') assertEqual(code, 0) + # This should print error instead of wait for input + def test_eval_unterminated(self): + out, err, code = self.input("eval('{')") + assertEqual(out, '') + assert "Unexpected end of input" in err + assertEqual(code, 0) + def test_reference_error(self): out, err, code = self.input("not_a_variable") assertEqual(out, '') |