org-mode/testing/lisp
Jack Kamm b5709ddc98 ob-python: Fix session blocks not waiting for value result
* lisp/ob-python.el (py-shell-send-string): Remove unneeded
declare-function.
(org-babel-python-eoe-indicator): Add back this const.
(org-babel-python--eval-ast): Fix spacing so the block can be entered
line by line into the interpreter.
(org-babel-python-evaluate-session): Revert previous changes to
evaluation for value results.
* testing/lisp/test-ob-python.el (test-ob-python/session-value-sleep):
New test for session blocks that don't return immediately.

632ceabb1 introduced a bug where session blocks don't wait for value
results if not returned immediately.  This reverts part of that
commit, specifically for evaluation of session blocks with value
results.  It leaves other parts of that commit alone, for example the
changes to session output results, which is more robust handling
prompts from ipython interpreter.

A downside of reverting the session value implementation is that the
ugly code from org-babel-python--eval-ast is again printed in the
console, but this is less bad than the new bug that was introduced by
the change, hence reverted.
2020-09-04 17:51:37 -07:00
..
test-ob-C.el Add test case for symbol coercion in C Babel blocks 2020-05-28 22:32:31 -04: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 testing/lisp/test-ob-lilypond.el: Delete test 2020-02-11 10:42:49 +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 session blocks not waiting for value result 2020-09-04 17:51:37 -07: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 Merge branch 'maint' 2020-06-08 20:28:03 -04:00
test-ob-vala.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ob.el ob-core: Avoid table conversion warning for empty results 2020-09-01 00:02:49 -04:00
test-ol-bbdb.el Prefix link-related libraries filenames with "ol" 2019-03-10 18:00:36 +01:00
test-ol.el ol: Fix some corner cases when normalizing context in links 2020-03-26 22:57:16 +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 Make tests robust with respect to mailcap entries 2020-06-03 00:11:46 -04:00
test-org-capture.el Fix capturing plain text with :unnarrowed property and no "%?" marker 2020-05-07 22:35:13 +02:00
test-org-clock.el org-clock: Mention semimonth step in manual and add test 2020-03-26 21:04:00 -04:00
test-org-colview.el colview: Display active time stamps as inactive 2020-05-12 22:44:57 -04: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 lint: Catch misleading drawers within drawers 2020-05-27 14:55:04 +02:00
test-org-list.el list: Fix item insertion when split point is near blanks 2020-08-16 11:42:53 +02:00
test-org-macro.el org-macro: Fix {{{author}}} expansion without AUTHOR keyword 2020-03-11 16:24:26 +01:00
test-org-macs.el Update copyright year 2019-01-01 11:50:56 +01:00
test-org-num.el org-num: Add tests 2020-08-28 08:45:41 +02:00
test-org-pcomplete.el pcomplete: improve header arguments completion 2020-05-14 14:52:30 +02:00
test-org-protocol.el org-protocol: Fix URL handling -- add tests 2019-03-10 18:20:58 +01:00
test-org-src.el src: Do not undo edit buffers back to empty state 2020-07-02 19:30:14 +02:00
test-org-table.el table: Allow collapsing header into single line 2020-06-28 23:02:26 +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 Merge branch 'maint' into master 2020-08-23 22:39:44 -04:00
test-ox-publish.el Update copyright year 2019-01-01 11:50:56 +01:00
test-ox.el table: Allow collapsing header into single line 2020-06-28 23:02:26 +02: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