emacs-elpa-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[elpa] externals/org 3ef0e3c338: test-ob-python: Refactor test failing o


From: ELPA Syncer
Subject: [elpa] externals/org 3ef0e3c338: test-ob-python: Refactor test failing on CI to provide better backtrace
Date: Tue, 15 Nov 2022 02:57:53 -0500 (EST)

branch: externals/org
commit 3ef0e3c33854311c5cec9c91b1f9ad36a119f7af
Author: Ihor Radchenko <yantar92@posteo.net>
Commit: Ihor Radchenko <yantar92@posteo.net>

    test-ob-python: Refactor test failing on CI to provide better backtrace
    
    * testing/lisp/test-ob-python.el (test-ob-python/assign-underscore):
    Do not wrap code into `should' form as much as possible to avoid
    truncated backtrace.
---
 testing/lisp/test-ob-python.el | 8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/testing/lisp/test-ob-python.el b/testing/lisp/test-ob-python.el
index 1f56740136..0889870254 100644
--- a/testing/lisp/test-ob-python.el
+++ b/testing/lisp/test-ob-python.el
@@ -163,13 +163,13 @@ value
            (org-babel-execute-src-block)))))
 
 (ert-deftest test-ob-python/assign-underscore ()
-  (should
-   (equal "success"
-         (org-test-with-temp-text "#+begin_src python :session :results value
+  (let ((result
+         (org-test-with-temp-text "#+begin_src python :session :results value
 _ = 'failure'
 'success'
 #+end_src"
-           (org-babel-execute-src-block)))))
+          (org-babel-execute-src-block))))
+    (should (equal "success" result))))
 
 (ert-deftest test-ob-python/multiline-var ()
   (should



reply via email to

[Prev in Thread] Current Thread [Next in Thread]