Make bytecomp-tests re-runnable
* test/lisp/emacs-lisp/bytecomp-tests.el (test-byte-comp-macro-expand-lexical-override): Remove functions before testing so that the test can be run twice without failing.
This commit is contained in:
parent
6a61d5edd0
commit
a8fc4f7dca
1 changed files with 2 additions and 0 deletions
|
@ -479,6 +479,8 @@ Subtests signal errors if something goes wrong."
|
|||
(ert-deftest bytecomp-tests--warnings ()
|
||||
(with-current-buffer (get-buffer-create "*Compile-Log*")
|
||||
(let ((inhibit-read-only t)) (erase-buffer)))
|
||||
(dolist (f '(my-test0 my--test11 my--test12 my--test2))
|
||||
(fset f nil))
|
||||
(test-byte-comp-compile-and-load t
|
||||
'(progn
|
||||
(defun my-test0 ()
|
||||
|
|
Loading…
Add table
Reference in a new issue