mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-15 10:30:25 -08:00
Don't rely on lexical-binding being nil in tests
* test/lisp/button-tests.el (button--help-echo-form): * test/lisp/files-tests.el (files-tests-permanent-local-variables): Remove assumption that `with-temp-buffer` creates a buffer where `lexical-binding` is nil.
This commit is contained in:
parent
8213729c93
commit
6ad77d36fd
2 changed files with 3 additions and 0 deletions
|
|
@ -154,12 +154,14 @@ form.")
|
|||
(ert-deftest files-tests-permanent-local-variables ()
|
||||
(let ((enable-local-variables nil))
|
||||
(with-temp-buffer
|
||||
(setq lexical-binding nil)
|
||||
(insert ";;; test-test.el --- tests -*- lexical-binding: t; -*-\n\n")
|
||||
(hack-local-variables)
|
||||
(should (eq lexical-binding t))))
|
||||
(let ((enable-local-variables nil)
|
||||
(permanently-enabled-local-variables nil))
|
||||
(with-temp-buffer
|
||||
(setq lexical-binding nil)
|
||||
(insert ";;; test-test.el --- tests -*- lexical-binding: t; -*-\n\n")
|
||||
(hack-local-variables)
|
||||
(should (eq lexical-binding nil)))))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue