diff options
| author | Stefan Monnier | 2021-12-08 16:22:24 -0500 |
|---|---|---|
| committer | Stefan Monnier | 2021-12-08 16:22:24 -0500 |
| commit | 3a0e0187b711db69df48e16b35a577f046cf38b1 (patch) | |
| tree | 428abc9f8271514e9680b6d8663138149be610a0 /test | |
| parent | aa3434369e0b9aeb15e5802a5e2cee598e6c01e2 (diff) | |
| download | emacs-3a0e0187b711db69df48e16b35a577f046cf38b1.tar.gz emacs-3a0e0187b711db69df48e16b35a577f046cf38b1.zip | |
* test/lisp/emacs-lisp/cl-macs-tests.el: Avoid `with-suppressed-warnings`
* test/lisp/emacs-lisp/cl-macs-tests.el (cl-macs--progv): Use a proper
namespace prefix for the global vars.
Diffstat (limited to 'test')
| -rw-r--r-- | test/lisp/emacs-lisp/cl-macs-tests.el | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/test/lisp/emacs-lisp/cl-macs-tests.el b/test/lisp/emacs-lisp/cl-macs-tests.el index 7c3afefaadd..13da60ec45e 100644 --- a/test/lisp/emacs-lisp/cl-macs-tests.el +++ b/test/lisp/emacs-lisp/cl-macs-tests.el | |||
| @@ -668,13 +668,13 @@ collection clause." | |||
| 668 | #'len)) | 668 | #'len)) |
| 669 | (`(function (lambda (,_ ,_) . ,_)) t)))) | 669 | (`(function (lambda (,_ ,_) . ,_)) t)))) |
| 670 | 670 | ||
| 671 | (with-suppressed-warnings ((lexical test) (lexical test1) (lexical test2)) | ||
| 672 | (defvar test) | ||
| 673 | (defvar test1) | ||
| 674 | (defvar test2)) | ||
| 675 | (ert-deftest cl-macs--progv () | 671 | (ert-deftest cl-macs--progv () |
| 676 | (should (= (cl-progv '(test test) '(1 2) test) 2)) | 672 | (defvar cl-macs--test) |
| 677 | (should (equal (cl-progv '(test1 test2) '(1 2) (list test1 test2)) | 673 | (defvar cl-macs--test1) |
| 674 | (defvar cl-macs--test2) | ||
| 675 | (should (= (cl-progv '(cl-macs--test cl-macs--test) '(1 2) cl-macs--test) 2)) | ||
| 676 | (should (equal (cl-progv '(cl-macs--test1 cl-macs--test2) '(1 2) | ||
| 677 | (list cl-macs--test1 cl-macs--test2)) | ||
| 678 | '(1 2)))) | 678 | '(1 2)))) |
| 679 | 679 | ||
| 680 | ;;; cl-macs-tests.el ends here | 680 | ;;; cl-macs-tests.el ends here |