branch: externals/org
commit 2a0d5860e345f33135cff1a0604d12c56a98b741
Author: Morgan Smith <[email protected]>
Commit: Ihor Radchenko <[email protected]>

    Testing: Suppress suspicious eq warning
    
    * testing/lisp/test-org-element.el (test-org-element/copy): Suppress
    suspicious eq warning
---
 testing/lisp/test-org-element.el | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)

diff --git a/testing/lisp/test-org-element.el b/testing/lisp/test-org-element.el
index c082339c7d..ecfa63a917 100644
--- a/testing/lisp/test-org-element.el
+++ b/testing/lisp/test-org-element.el
@@ -811,7 +811,9 @@ Some other text
   (should-not (org-element-copy nil))
   ;; Return a copy secondary strings.
   (should (equal '("text") (org-element-copy '("text"))))
-  (should-not (eq '("text") (org-element-copy '("text"))))
+  (with-suppressed-warnings ((suspicious eq))
+    (should-not
+     (eq '("text") (org-element-copy '("text")))))
   ;; Do not alter the source.
   (org-test-with-temp-text "*bold*"
     (let* ((source (org-element-context))

Reply via email to