From 2c6eb7793b8938d2cce413499a62716a87163a29 Mon Sep 17 00:00:00 2001 From: Tom Gillespie Date: Tue, 28 Jun 2022 19:55:31 -0700 Subject: [PATCH] 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 @@ python-nav-end-of-block-1 (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 -- 2.35.1