* test/src/pkg-tests.el (pkg-tests-*package*): Test that *package*
cannot be bound to a non-package.
(should (not (packagep "emacs")))
(should (not (packagep nil))))
+(ert-deftest pkg-tests-*package* ()
+ (should (eq (let ((*package* (find-package "emacs"))) 'good) 'good))
+ (should-error (let ((*package* :emacs)) nil))
+ (should-error (let ((*package* 1))))
+ (should-error (setq *package* :keyword)))
+
(ert-deftest pkg-tests-standard-packages ()
(should (packagep (find-package "emacs")))
(should (packagep (find-package 'emacs)))