From c4b6e99e7d3547d8de7f3fc92188c7524cf455dd Mon Sep 17 00:00:00 2001 From: Andrea Corallo Date: Tue, 9 Jul 2024 22:31:34 +0200 Subject: [PATCH] * test/src/comp-tests.el (compile-forms): Simplify test. (cherry picked from commit 57defada883c7b93117246c52a383d417f77c765) --- test/src/comp-tests.el | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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) -- 2.39.2