summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStefan Kangas <stefan@marxist.se>2021-12-20 13:51:06 +0100
committerStefan Kangas <stefan@marxist.se>2021-12-20 13:52:44 +0100
commit3cf11a3c6101cc30e3a8d40fdab6cdcb097105c8 (patch)
tree2236b30f9f07d5105ce172f903bc1442d7f20161
parent152b94ed0f57e81563b5dab34ee0183ecfac9394 (diff)
downloademacs-3cf11a3c6101cc30e3a8d40fdab6cdcb097105c8.tar.gz
Silence byte-compiler in cconv-tests.el
* test/lisp/emacs-lisp/cconv-tests.el (cconv-tests-iter-lambda-:documentation) (cconv-tests-cl-function-:documentation): Silence byte-compiler.
-rw-r--r--test/lisp/emacs-lisp/cconv-tests.el26
1 files changed, 14 insertions, 12 deletions
diff --git a/test/lisp/emacs-lisp/cconv-tests.el b/test/lisp/emacs-lisp/cconv-tests.el
index 0701892b8c4..94bc759fa07 100644
--- a/test/lisp/emacs-lisp/cconv-tests.el
+++ b/test/lisp/emacs-lisp/cconv-tests.el
@@ -107,23 +107,25 @@
"Docstring for iter-lambda can be specified with :documentation."
;; FIXME: See Bug#28557.
:expected-result :failed
- (let ((iter-fun
- (iter-lambda ()
- (:documentation (concat "iter-lambda" " documentation"))
- (iter-yield 'iter-lambda-result))))
- (should (string= (documentation iter-fun) "iter-lambda documentation"))
- (should (eq (iter-next (funcall iter-fun)) 'iter-lambda-result))))
+ (with-no-warnings ; disable warnings for now as test is expected to fail
+ (let ((iter-fun
+ (iter-lambda ()
+ (:documentation (concat "iter-lambda" " documentation"))
+ (iter-yield 'iter-lambda-result))))
+ (should (string= (documentation iter-fun) "iter-lambda documentation"))
+ (should (eq (iter-next (funcall iter-fun)) 'iter-lambda-result)))))
(ert-deftest cconv-tests-cl-function-:documentation ()
"Docstring for cl-function can be specified with :documentation."
;; FIXME: See Bug#28557.
:expected-result :failed
- (let ((fun (cl-function (lambda (&key arg)
- (:documentation (concat "cl-function"
- " documentation"))
- (list arg 'cl-function-result)))))
- (should (string= (documentation fun) "cl-function documentation"))
- (should (equal (funcall fun :arg t) '(t cl-function-result)))))
+ (with-no-warnings ; disable warnings for now as test is expected to fail
+ (let ((fun (cl-function (lambda (&key arg)
+ (:documentation (concat "cl-function"
+ " documentation"))
+ (list arg 'cl-function-result)))))
+ (should (string= (documentation fun) "cl-function documentation"))
+ (should (equal (funcall fun :arg t) '(t cl-function-result))))))
(ert-deftest cconv-tests-function-:documentation ()
"Docstring for lambda inside function can be specified with :documentation."