diff options
author | Tom Gillespie <tgbugs@gmail.com> | 2022-06-28 19:55:31 -0700 |
---|---|---|
committer | Lars Ingebrigtsen <larsi@gnus.org> | 2022-06-29 12:13:34 +0200 |
commit | 9c9e34e9b683b6b548d92dc7c1ed57f06f62eefb (patch) | |
tree | d47af6e331612a2fbd06c8cbc11326722679b316 /test/lisp/progmodes/python-tests.el | |
parent | bf1dbdd87bb87eb9f18f7677d6d254b249b4c251 (diff) | |
download | emacs-9c9e34e9b683b6b548d92dc7c1ed57f06f62eefb.tar.gz emacs-9c9e34e9b683b6b548d92dc7c1ed57f06f62eefb.tar.bz2 emacs-9c9e34e9b683b6b548d92dc7c1ed57f06f62eefb.zip |
test/lisp/progmodes/python-tests.el: add test for nav end of block
Add test for python-nav-end-of-block to prevent regression of bug#56271.
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
-rw-r--r-- | test/lisp/progmodes/python-tests.el | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el index e17bc0df925..c59a2e79533 100644 --- a/test/lisp/progmodes/python-tests.el +++ b/test/lisp/progmodes/python-tests.el @@ -2565,6 +2565,18 @@ def decoratorFunctionWithArguments(arg1, arg2, arg3): (python-tests-look-at "print 'After f(*args)'") (line-end-position)))))) +(ert-deftest python-nav-end-of-block-2 () + "Ensure that `python-nav-end-of-block' does not enter an infinite loop." + (python-tests-with-temp-buffer + "def + ='' + ' +\"\"\"\"\"\" + # +'' +" + (python-nav-end-of-block))) + (ert-deftest python-nav-forward-block-1 () "This also accounts as a test for `python-nav-backward-block'." (python-tests-with-temp-buffer |