From: Andrea Corallo Date: Tue, 9 Jul 2024 20:31:34 +0000 (+0200) Subject: * test/src/comp-tests.el (compile-forms): Simplify test. X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=c4b6e99e7d3547d8de7f3fc92188c7524cf455dd;p=emacs.git * test/src/comp-tests.el (compile-forms): Simplify test. (cherry picked from commit 57defada883c7b93117246c52a383d417f77c765) --- diff --git a/test/src/comp-tests.el b/test/src/comp-tests.el index 60bc1903801..33b127d5d26 100644 --- a/test/src/comp-tests.el +++ b/test/src/comp-tests.el @@ -495,8 +495,7 @@ https://lists.gnu.org/archive/html/bug-gnu-emacs/2020-03/msg00914.html." (comp-deftest compile-forms () "Verify lambda form native compilation." (should-error (native-compile '(+ 1 foo))) - (let ((lexical-binding t) - (f (native-compile '(lambda (x) (1+ x))))) + (let ((f (native-compile '(lambda (x) (1+ x))))) (should (native-comp-function-p f)) (should (= (funcall f 2) 3))) (let* ((lexical-binding nil)