emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

master 9c9e34e9b6 2/2: test/lisp/progmodes/python-tests.el: add test for


From: Lars Ingebrigtsen
Subject: master 9c9e34e9b6 2/2: test/lisp/progmodes/python-tests.el: add test for nav end of block
Date: Wed, 29 Jun 2022 06:14:27 -0400 (EDT)

branch: master
commit 9c9e34e9b683b6b548d92dc7c1ed57f06f62eefb
Author: Tom Gillespie <tgbugs@gmail.com>
Commit: Lars Ingebrigtsen <larsi@gnus.org>

    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.
---
 test/lisp/progmodes/python-tests.el | 12 ++++++++++++
 1 file changed, 12 insertions(+)

diff --git a/test/lisp/progmodes/python-tests.el 
b/test/lisp/progmodes/python-tests.el
index e17bc0df92..c59a2e7953 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



reply via email to

[Prev in Thread] Current Thread [Next in Thread]