]> git.eshelyaron.com Git - emacs.git/commitdiff
* test/src/comp-tests.el (compile-forms): Simplify test.
authorAndrea Corallo <acorallo@gnu.org>
Tue, 9 Jul 2024 20:31:34 +0000 (22:31 +0200)
committerEshel Yaron <me@eshelyaron.com>
Wed, 10 Jul 2024 20:00:09 +0000 (22:00 +0200)
(cherry picked from commit 57defada883c7b93117246c52a383d417f77c765)

test/src/comp-tests.el

index 60bc190380118ebbd0a1fd587a0daa7081b2586c..33b127d5d2685ec5beb7ccf64993a49b958307ae 100644 (file)
@@ -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)