aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorPhilip Kaludercic2025-12-23 00:12:39 +0100
committerPhilip Kaludercic2026-01-01 13:47:41 +0100
commit4771cd2e5835efb6cfbc2efe2287ff58e7b5b6dc (patch)
treeca8988531c3f7e74a094193744e6fa282a2d9283 /test
parente1f87081d417ce69f6e101d9d38feeb77e4f3697 (diff)
downloademacs-4771cd2e5835efb6cfbc2efe2287ff58e7b5b6dc.tar.gz
emacs-4771cd2e5835efb6cfbc2efe2287ff58e7b5b6dc.zip
; Fix test resulting from 5744519e
* lisp/emacs-lisp/package.el (package-install): Delete dead code resulting from previous change. * test/lisp/emacs-lisp/package-tests.el (package-test-install-single): Adjust code to expect 'user-error'
Diffstat (limited to 'test')
-rw-r--r--test/lisp/emacs-lisp/package-tests.el4
1 files changed, 3 insertions, 1 deletions
diff --git a/test/lisp/emacs-lisp/package-tests.el b/test/lisp/emacs-lisp/package-tests.el
index 55f69d888b8..1f0a8f73a5c 100644
--- a/test/lisp/emacs-lisp/package-tests.el
+++ b/test/lisp/emacs-lisp/package-tests.el
@@ -241,7 +241,9 @@ Must called from within a `tar-mode' buffer."
241 (package-initialize) 241 (package-initialize)
242 (should (package-installed-p 'simple-single)) 242 (should (package-installed-p 'simple-single))
243 ;; Check if we properly report an "already installed". 243 ;; Check if we properly report an "already installed".
244 (should-error (package-install 'simple-single) :type 'user-error) 244 (should (condition-case nil
245 (progn (package-install 'simple-single) nil)
246 (user-error t)))
245 (should (package-installed-p 'simple-single)) 247 (should (package-installed-p 'simple-single))
246 (let* ((simple-pkg-dir (file-name-as-directory 248 (let* ((simple-pkg-dir (file-name-as-directory
247 (expand-file-name 249 (expand-file-name