From: Artur Malabarba Date: Sun, 12 Apr 2015 15:10:22 +0000 (+0100) Subject: * test/automated/package-test.el (with-package-test): Kill Packages buffer X-Git-Tag: emacs-25.0.90~2459 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=fe3b5b3f4599fb607ef03a99080b189464531da7;p=emacs.git * test/automated/package-test.el (with-package-test): Kill Packages buffer --- diff --git a/test/automated/package-test.el b/test/automated/package-test.el index 2fbcfd06140..4385ee0bd48 100644 --- a/test/automated/package-test.el +++ b/test/automated/package-test.el @@ -125,6 +125,9 @@ '((package-test-archive-upload-base (make-temp-file "pkg-archive-base-" t)) (package-archive-upload-base package-test-archive-upload-base)) (list (cl-gensym)))) ;; Dummy value so `let' doesn't try to bind `nil' + (let ((buf (get-buffer "*Packages*"))) + (when (buffer-live-p buf) + (kill-buffer buf))) (unwind-protect (progn ,(if basedir `(cd ,basedir))