From 76599aed8f53e36c0ba30bb2f77433362ec24666 2018-10-06 16:18:39 From: Tony Fast Date: 2018-10-06 16:18:39 Subject: [PATCH] Add check_complete test for exit. Co-Authored-By: Nicholas Bollweg --- diff --git a/IPython/core/tests/test_inputtransformer2.py b/IPython/core/tests/test_inputtransformer2.py index 839fe0e..9c5a413 100644 --- a/IPython/core/tests/test_inputtransformer2.py +++ b/IPython/core/tests/test_inputtransformer2.py @@ -215,6 +215,8 @@ def test_check_complete(): nt.assert_equal(cc("def a():\n x=1\n global x"), ('invalid', None)) nt.assert_equal(cc("a \\ "), ('invalid', None)) # Nothing allowed after backslash nt.assert_equal(cc("1\\\n+2"), ('complete', None)) + nt.assert_equal(cc("1\\\n+2"), ('complete', None)) + nt.assert_equal(cc("exit"), ('complete', None)) example = dedent(""" if True: