mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-02-16 17:24:23 +00:00
Repair package-tests failure
* test/lisp/emacs-lisp/package-tests.el (package-test-install-single): "already installed" is now an error; adapt test.
This commit is contained in:
parent
655d277731
commit
10fdf48635
1 changed files with 1 additions and 4 deletions
|
|
@ -241,10 +241,7 @@ Must called from within a `tar-mode' buffer."
|
|||
(package-initialize)
|
||||
(should (package-installed-p 'simple-single))
|
||||
;; Check if we properly report an "already installed".
|
||||
(package-install 'simple-single)
|
||||
(with-current-buffer "*Messages*"
|
||||
(should (string-match "^[`‘']simple-single[’'] is already installed\n?\\'"
|
||||
(buffer-string))))
|
||||
(should-error (package-install 'simple-single) :type 'user-error)
|
||||
(should (package-installed-p 'simple-single))
|
||||
(let* ((simple-pkg-dir (file-name-as-directory
|
||||
(expand-file-name
|
||||
|
|
|
|||
Loading…
Reference in a new issue