Fix test in python-tests.el added by bug #62092
* test/lisp/progmodes/python-tests.el (python-info-dedenter-opening-block-positions-6): Fix indentation. (python-info-dedenter-opening-block-positions-7): Add calling `should'. Add RESTORE-POINT argument when calling `python-tests-look-at'.
This commit is contained in:
parent
7ba76dc9c3
commit
1db7e8eba9
1 changed files with 6 additions and 6 deletions
|
@ -5973,9 +5973,9 @@ def func():
|
|||
else
|
||||
"
|
||||
(python-tests-look-at "else\n")
|
||||
(should
|
||||
(equal (list (python-tests-look-at "if (" -1 t))
|
||||
(python-info-dedenter-opening-block-positions)))))
|
||||
(should
|
||||
(equal (list (python-tests-look-at "if (" -1 t))
|
||||
(python-info-dedenter-opening-block-positions)))))
|
||||
|
||||
(ert-deftest python-info-dedenter-opening-block-positions-7 ()
|
||||
"Test case blocks."
|
||||
|
@ -5993,9 +5993,9 @@ match a:
|
|||
(python-tests-look-at "case 2:")
|
||||
(should-not (python-info-dedenter-opening-block-positions))
|
||||
(python-tests-look-at "case 3:")
|
||||
(equal (list (python-tests-look-at "case 2:" -1)
|
||||
(python-tests-look-at "case 1:" -1 t))
|
||||
(python-info-dedenter-opening-block-positions))))
|
||||
(should (equal (list (python-tests-look-at "case 2:" -1 t)
|
||||
(python-tests-look-at "case 1:" -1 t))
|
||||
(python-info-dedenter-opening-block-positions)))))
|
||||
|
||||
(ert-deftest python-info-dedenter-opening-block-message-1 ()
|
||||
"Test dedenters inside strings are ignored."
|
||||
|
|
Loading…
Add table
Reference in a new issue