(package-test-install-single): Fix test failure

* test/lisp/emacs-lisp/package-tests.el (package-test-install-single):
We signal an error only for interactive calls now.
This commit is contained in:
Stefan Monnier 2026-01-07 10:58:27 -05:00
parent ba7c2debef
commit b5b7504c73

View file

@ -242,7 +242,7 @@ Must called from within a `tar-mode' buffer."
(should (package-installed-p 'simple-single))
;; Check if we properly report an "already installed".
(should (condition-case nil
(progn (package-install 'simple-single) nil)
(progn (package-install 'simple-single nil 'interactive) nil)
(user-error t)))
(should (package-installed-p 'simple-single))
(let* ((simple-pkg-dir (file-name-as-directory