1
Fork 0
mirror of git://git.sv.gnu.org/emacs.git synced 2025-12-15 10:30:25 -08:00

; Fix last change

* lisp/progmodes/python.el (python-shell-send-block): Doc fix.

* test/lisp/progmodes/python-tests.el
(python-test--shell-send-block): Avoid byte-compiler warnings.
(Bug#70609)
This commit is contained in:
Eli Zaretskii 2024-05-02 13:04:15 +03:00
parent b2e92c746e
commit 59c18389bd
2 changed files with 8 additions and 7 deletions

View file

@ -7473,9 +7473,9 @@ buffer with overlapping strings."
for x in range(1,3):
print('current %s' % x)
print('current 3')"
(goto-line 1)
(goto-char (point-min))
(should-error (python-shell-send-block) :type 'user-error)
(goto-line 2)
(forward-line)
(python-shell-send-block)
(python-tests-shell-wait-for-prompt)
(python-shell-with-shell-buffer
@ -7484,7 +7484,7 @@ print('current 3')"
(should (re-search-forward "current 1" nil t))
(should (re-search-forward "current 2" nil t))
(should-not (re-search-forward "current 3" nil t)))
(goto-line 3)
(forward-line)
(python-shell-send-block t) ;; send block body only
(python-tests-shell-wait-for-prompt)
(python-shell-with-shell-buffer