emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/compat 50b26ffdf2 07/10: Install nadvice in compat-test


From: ELPA Syncer
Subject: [elpa] externals/compat 50b26ffdf2 07/10: Install nadvice in compat-tests before loading compat
Date: Mon, 28 Feb 2022 03:57:33 -0500 (EST)

branch: externals/compat
commit 50b26ffdf22fe55b6e4829407e0534ed3ed4c1c9
Author: Philip Kaludercic <philipk@posteo.net>
Commit: Philip Kaludercic <philipk@posteo.net>

    Install nadvice in  compat-tests before loading compat
---
 compat-tests.el | 9 ++++-----
 1 file changed, 4 insertions(+), 5 deletions(-)

diff --git a/compat-tests.el b/compat-tests.el
index 43564d4807..8b7da1e614 100644
--- a/compat-tests.el
+++ b/compat-tests.el
@@ -34,6 +34,10 @@
 
 (require 'ert)
 
+(unless (fboundp 'advice-add)
+  (require 'package)
+  (package-install 'nadvice))
+
 (defvar compat-testing)
 (let ((compat-testing t))
   (load "compat.el"))
@@ -124,11 +128,6 @@ the compatibility function."
 
 
 
-(unless (fboundp 'advice-add)
-  (require 'package)
-  (package-initialize)
-  (package-install 'nadvice))
-
 (ert-deftest compat-string-search ()
   "Check if `compat--string-search' was implemented correctly."
   (compat-test string-search



reply via email to

[Prev in Thread] Current Thread [Next in Thread]