diff options
| author | Tom Gillespie | 2022-06-28 19:55:31 -0700 |
|---|---|---|
| committer | Lars Ingebrigtsen | 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.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): | |||
| 2565 | (python-tests-look-at "print 'After f(*args)'") | 2565 | (python-tests-look-at "print 'After f(*args)'") |
| 2566 | (line-end-position)))))) | 2566 | (line-end-position)))))) |
| 2567 | 2567 | ||
| 2568 | (ert-deftest python-nav-end-of-block-2 () | ||
| 2569 | "Ensure that `python-nav-end-of-block' does not enter an infinite loop." | ||
| 2570 | (python-tests-with-temp-buffer | ||
| 2571 | "def | ||
| 2572 | ='' | ||
| 2573 | ' | ||
| 2574 | \"\"\"\"\"\" | ||
| 2575 | # | ||
| 2576 | '' | ||
| 2577 | " | ||
| 2578 | (python-nav-end-of-block))) | ||
| 2579 | |||
| 2568 | (ert-deftest python-nav-forward-block-1 () | 2580 | (ert-deftest python-nav-forward-block-1 () |
| 2569 | "This also accounts as a test for `python-nav-backward-block'." | 2581 | "This also accounts as a test for `python-nav-backward-block'." |
| 2570 | (python-tests-with-temp-buffer | 2582 | (python-tests-with-temp-buffer |