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.
This commit is contained in:
Ihor Radchenko 2022-11-15 15:04:08 +08:00
parent de2d2d928f
commit 3ef0e3c338
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 4 additions and 4 deletions

View File

@ -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