; Silence byte-compiler in two tests
* test/lisp/subr-tests.el (test-print-unreadable-function): * test/src/print-tests.el (test-print-unreadable-function-buffer): Pacify byte-compiler.
This commit is contained in:
parent
5b29f8cd98
commit
88d719e95b
2 changed files with 4 additions and 2 deletions
|
@ -1044,7 +1044,8 @@ final or penultimate step during initialization."))
|
|||
;; Check that problem with unwinding properly is fixed (bug#56773).
|
||||
(with-temp-buffer
|
||||
(let ((buf (current-buffer)))
|
||||
(readablep (make-marker))
|
||||
(let ((_ (readablep (make-marker)))) nil) ; this `let' silences a
|
||||
; warning
|
||||
(should (eq buf (current-buffer))))))
|
||||
|
||||
(ert-deftest test-string-lines ()
|
||||
|
|
|
@ -536,7 +536,8 @@ otherwise, use a different charset."
|
|||
(let ((print-unreadable-function
|
||||
(lambda (_object _escape)
|
||||
(setq callback-buffer (current-buffer)))))
|
||||
(prin1-to-string (make-marker)))
|
||||
(let ((_ (prin1-to-string (make-marker)))) nil)) ; this `let' silences a
|
||||
; warning
|
||||
(should (eq current callback-buffer)))))
|
||||
|
||||
(provide 'print-tests)
|
||||
|
|
Loading…
Add table
Reference in a new issue