org-mode/testing/lisp
Jack Kamm cc89d5523f ob-python: Fix several issues with :session :results value
* lisp/ob-python.el (org-babel-python-evaluate-session): Fix a few
related issues with :session :results value blocks, including broken
if-else statements, indented blocks with blank lines, and returning
the wrong value when underscore has been used.
(org-babel-python--eval-ast): New constant variable, a string
consisting of Python code to execute a source block using ast.

Previously, python blocks with parameters ":session :results value"
were entered line-by-line into the Python session, which could cause
issues around indentation and new lines.  Now, such python blocks are
written to temp files, then the built-in ast python module is used to
parse and execute them, and to extract the last line separately to
return as a result.  Introduces a change in behavior, requiring that
the last line must be a top-level expression statement if its result
is to be saved (otherwise, the result is None).
2020-02-03 21:17:38 -08:00
..
test-ob-C.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-R.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-awk.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-clojure.el Update copyright year to 2020 2020-01-01 13:38:46 -05:00
test-ob-emacs-lisp.el Update copyright year to 2020 2020-01-01 13:38:46 -05:00
test-ob-eshell.el ob-eshell.el: Add Eshell support for Babel 2018-10-03 18:44:34 +02:00
test-ob-exp.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-fortran.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-header-arg-defaults.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-lilypond.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-lob.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-lua.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-maxima.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-octave.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-perl.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-plantuml.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-python.el ob-python: Fix several issues with :session :results value 2020-02-03 21:17:38 -08:00
test-ob-ruby.el Ruby tests 2019-05-16 10:43:14 +02:00
test-ob-scheme.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-sed.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-shell.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-sqlite.el Fix typos 2019-11-16 17:17:36 -05:00
test-ob-table.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob-tangle.el Add tests about omission of commented src blocks when e.g. tangling 2019-11-24 10:27:35 +01:00
test-ob-vala.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob.el Add tests about omission of commented src blocks when e.g. tangling 2019-11-24 10:27:35 +01:00
test-ol-bbdb.el Prefix link-related libraries filenames with "ol" 2019-03-10 18:00:36 +01:00
test-ol.el Link syntax require to escape every square bracket 2019-12-22 14:52:53 +01:00
test-org-agenda.el Revert "Fix test" 2020-01-27 23:43:14 +01:00
test-org-archive.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-attach-git.el Fix problems with org-attach-git, failed tests 2019-09-08 14:43:46 +02:00
test-org-attach.el Fix typos 2019-11-16 17:17:36 -05:00
test-org-capture.el Fix inserting capture templates at point 2019-07-06 16:02:37 +02:00
test-org-clock.el org-clock: Fix tests 2019-12-22 14:51:31 +01:00
test-org-colview.el Merge branch 'maint' 2019-02-12 19:55:26 -05:00
test-org-datetree.el org-capture: Add support for month trees 2019-12-09 20:08:28 +01:00
test-org-duration.el org-duration: Read and write duration in compact form 2020-01-04 18:39:05 +01:00
test-org-element.el Merge branch 'maint' 2020-01-11 20:18:47 +01:00
test-org-feed.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-footnote.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-info.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-inlinetask.el Use `org-flag-subtree' instead of `outline-hide-subtree' 2019-05-11 09:48:53 +02:00
test-org-lint.el Merge branch 'maint' 2019-03-14 18:12:08 +01:00
test-org-list.el org-list: Fix `org-list-demote-modify-bullet' with alpha bullets 2019-02-18 23:38:13 +01:00
test-org-macro.el org-macro: Exit early when looking for keywords 2019-04-29 20:48:00 +02:00
test-org-macs.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-num.el org-num: Fix failing tests 2019-01-08 11:32:34 +01:00
test-org-pcomplete.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-protocol.el org-protocol: Fix URL handling -- add tests 2019-03-10 18:20:58 +01:00
test-org-src.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-table.el Fix test 2019-07-09 12:03:32 +02:00
test-org-tempo.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-timer.el When testing, fake the current time more robustly 2019-02-12 19:34:08 -05:00
test-org.el Rename `org-x-priority' functions and variables to `org-priority-x' 2020-01-30 14:56:38 +01:00
test-ox-publish.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ox.el Link syntax require to escape every square bracket 2019-12-22 14:52:53 +01:00
test-property-inheritance.el org-test, test-org-element, test-org, test-ox, test-property-inheritance 2019-07-07 19:42:50 +02:00