diff options
| author | Stefan Kangas | 2025-03-02 04:12:57 +0100 |
|---|---|---|
| committer | Stefan Kangas | 2025-03-02 04:19:35 +0100 |
| commit | 735eace97b88c7e1a7864a0eb5caf2a6d263b60a (patch) | |
| tree | 85cff8d06ba5f36af5d48019269fe1b0235f3ccc /test | |
| parent | 38782e684bf5f67e2d8f69daeeb17f37cf4b2c3f (diff) | |
| download | emacs-735eace97b88c7e1a7864a0eb5caf2a6d263b60a.tar.gz emacs-735eace97b88c7e1a7864a0eb5caf2a6d263b60a.zip | |
Make package-install accept a string as well
* lisp/emacs-lisp/package.el (package-install): Allow passing a string
instead of a symbol. (Bug#72160)
(package-upgrade): Improve docstring.
* test/lisp/emacs-lisp/package-tests.el
(package-test-install-single-from-archive/string-type): New test.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/emacs-lisp/package-tests.el | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/test/lisp/emacs-lisp/package-tests.el b/test/lisp/emacs-lisp/package-tests.el index d8e260319bd..ed778049dcb 100644 --- a/test/lisp/emacs-lisp/package-tests.el +++ b/test/lisp/emacs-lisp/package-tests.el | |||
| @@ -450,6 +450,13 @@ but with a different end of line convention (bug#48137)." | |||
| 450 | (package-refresh-contents) | 450 | (package-refresh-contents) |
| 451 | (package-install 'simple-single))) | 451 | (package-install 'simple-single))) |
| 452 | 452 | ||
| 453 | (ert-deftest package-test-install-single-from-archive/string-type () | ||
| 454 | "Install a single package from a package archive, using string argument." | ||
| 455 | (with-package-test () | ||
| 456 | (package-initialize) | ||
| 457 | (package-refresh-contents) | ||
| 458 | (package-install "simple-single"))) | ||
| 459 | |||
| 453 | (ert-deftest package-test-install-prioritized () | 460 | (ert-deftest package-test-install-prioritized () |
| 454 | "Install a lower version from a higher-prioritized archive." | 461 | "Install a lower version from a higher-prioritized archive." |
| 455 | (with-package-test () | 462 | (with-package-test () |