]> git.eshelyaron.com Git - emacs.git/commitdiff
Avoid ert test failures
authorGlenn Morris <rgm@gnu.org>
Tue, 18 Apr 2017 16:52:33 +0000 (12:52 -0400)
committerGlenn Morris <rgm@gnu.org>
Tue, 18 Apr 2017 16:52:33 +0000 (12:52 -0400)
* lisp/emacs-lisp/ert.el (ert--expand-should-1):
Avoid errors related to undefined byte-compile-macro-environment.
Somehow masked until very recently because loading seq (eg)
loads bytecomp.  http://hydra.nixos.org/build/51730765

lisp/emacs-lisp/ert.el

index 7eaf33a27dc3bef3c953b52df55e9762c36a7af4..f4c61e625d88cf081cb29a9c415f06f36d5e69ad 100644 (file)
@@ -275,6 +275,7 @@ DATA is displayed to the user and should state the reason for skipping."
 
 (defun ert--expand-should-1 (whole form inner-expander)
   "Helper function for the `should' macro and its variants."
+  (require 'bytecomp)                   ; FIXME?
   (let ((form
          (macroexpand form (append byte-compile-macro-environment
                                    (cond