Commit fd4e65e4 authored by Fabián Ezequiel Gallina's avatar Fabián Ezequiel Gallina
Browse files

Added missing test for previous commit

parent 5485e3e5
......@@ -2089,6 +2089,23 @@ def f():
(should (looking-at "def f():"))))
(ert-deftest python-indent-dedent-line-backspace-1 ()
"Check de-indentation on first call. Bug#18319."
if True:
x ()
if False:
(python-tests-look-at "if False:")
(call-interactively #'python-indent-dedent-line-backspace)
(should (zerop (current-indentation)))
;; XXX: This should be a call to `undo' but it's triggering errors.
(insert " ")
(should (= (current-indentation) 4))
(call-interactively #'python-indent-dedent-line-backspace)
(should (zerop (current-indentation)))))
;;; Shell integration
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment