Commit ebdb5b7c authored by Alexandre Duret-Lutz's avatar Alexandre Duret-Lutz

python: avoid some locking errors with the history

* wrap/python/tests/ipnbdoctest.py: Store all the history
in memory.
parent 98e4d99b
......@@ -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()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment