test-ob-python: Disable test failing on CI when using older Emacs

* testing/lisp/test-ob-python.el (test-ob-python/assign-underscore):
Skip the test when running Emacs <28.  On older Emacs, python.el may
fail to load on slow machines, like during CI testing.

Link: https://lists.sr.ht/~bzg/org-build-failures/%3CCOCRNW71TUAP.L29E2AW6TQZ2%40cirno2%3E
This commit is contained in:
Ihor Radchenko 2022-11-16 10:26:12 +08:00
parent 00778ce2a6
commit d45a896289
No known key found for this signature in database
GPG Key ID: 6470762A7DA11D8B
1 changed files with 3 additions and 0 deletions

View File

@ -163,6 +163,9 @@ value
(org-babel-execute-src-block)))))
(ert-deftest test-ob-python/assign-underscore ()
;; Disable the test on older Emacs as built-in python.el sometimes
;; fail.
(skip-unless (version<= "28" emacs-version))
(let ((result
(org-test-with-temp-text "#+begin_src python :session :results value
_ = 'failure'