diff options
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/emacs-lisp/package-tests.el | 4 |
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 |