From ebdb5b7c905f75c3e411c39dff8bffef545ef200 Mon Sep 17 00:00:00 2001 From: Alexandre Duret-Lutz Date: Tue, 14 Apr 2015 17:56:23 +0200 Subject: [PATCH] python: avoid some locking errors with the history * wrap/python/tests/ipnbdoctest.py: Store all the history in memory. --- wrap/python/tests/ipnbdoctest.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/wrap/python/tests/ipnbdoctest.py b/wrap/python/tests/ipnbdoctest.py index 56ff9cb62..4f399b10d 100755 --- a/wrap/python/tests/ipnbdoctest.py +++ b/wrap/python/tests/ipnbdoctest.py @@ -189,10 +189,10 @@ def run_cell(kc, cell): def test_notebook(nb): - # run %pylab inline, because some notebooks assume this - # even though they shouldn't km = KernelManager() - km.start_kernel(extra_arguments=['--pylab=inline'], + # Do not save the history to disk, as it can yield spurious lock errors. + # See https://github.com/ipython/ipython/issues/2845 + km.start_kernel(extra_arguments=['--HistoryManager.hist_file=:memory:'], stderr=open(os.devnull, 'w')) kc = km.client()