diff options
| author | Lin Sun | 2024-05-20 06:55:31 +0000 |
|---|---|---|
| committer | Eli Zaretskii | 2024-05-26 11:23:12 +0300 |
| commit | b241ec0e78f141e7fc22cf3afb11037d14fc028c (patch) | |
| tree | 0fd2cfe9683ab071434c290c684af8cbf0691b92 /test/lisp/progmodes/python-tests.el | |
| parent | 9ca89cb4834a20bc7d38289046d4d05e2212ba50 (diff) | |
| download | emacs-b241ec0e78f141e7fc22cf3afb11037d14fc028c.tar.gz emacs-b241ec0e78f141e7fc22cf3afb11037d14fc028c.zip | |
Enhance 'python-shell-send-block' for convenience
* lisp/progmodes/python.el (python-shell-send-block):
'python-shell-send-block' will now send block without header
by default.
* test/lisp/progmodes/python-tests.el
(python-test--shell-send-block): Update the test case.
(Bug#71083)
Diffstat (limited to 'test/lisp/progmodes/python-tests.el')
| -rw-r--r-- | test/lisp/progmodes/python-tests.el | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/lisp/progmodes/python-tests.el b/test/lisp/progmodes/python-tests.el index de6a4316758..b41688e9d48 100644 --- a/test/lisp/progmodes/python-tests.el +++ b/test/lisp/progmodes/python-tests.el | |||
| @@ -7524,7 +7524,7 @@ print('current 3')" | |||
| 7524 | (goto-char (point-min)) | 7524 | (goto-char (point-min)) |
| 7525 | (should-error (python-shell-send-block) :type 'user-error) | 7525 | (should-error (python-shell-send-block) :type 'user-error) |
| 7526 | (forward-line) | 7526 | (forward-line) |
| 7527 | (python-shell-send-block) | 7527 | (python-shell-send-block t) ;; send block with header |
| 7528 | (python-tests-shell-wait-for-prompt) | 7528 | (python-tests-shell-wait-for-prompt) |
| 7529 | (python-shell-with-shell-buffer | 7529 | (python-shell-with-shell-buffer |
| 7530 | (goto-char (point-min)) | 7530 | (goto-char (point-min)) |
| @@ -7533,7 +7533,7 @@ print('current 3')" | |||
| 7533 | (should (re-search-forward "current 2" nil t)) | 7533 | (should (re-search-forward "current 2" nil t)) |
| 7534 | (should-not (re-search-forward "current 3" nil t))) | 7534 | (should-not (re-search-forward "current 3" nil t))) |
| 7535 | (forward-line) | 7535 | (forward-line) |
| 7536 | (python-shell-send-block t) ;; send block body only | 7536 | (python-shell-send-block) ;; send block body only |
| 7537 | (python-tests-shell-wait-for-prompt) | 7537 | (python-tests-shell-wait-for-prompt) |
| 7538 | (python-shell-with-shell-buffer | 7538 | (python-shell-with-shell-buffer |
| 7539 | ;; should only 1 line output from the block body | 7539 | ;; should only 1 line output from the block body |