python: avoid some locking errors with the history
* wrap/python/tests/ipnbdoctest.py: Store all the history in memory.
This commit is contained in:
parent
98e4d99b24
commit
ebdb5b7c90
1 changed files with 3 additions and 3 deletions
|
|
@ -189,10 +189,10 @@ def run_cell(kc, cell):
|
||||||
|
|
||||||
|
|
||||||
def test_notebook(nb):
|
def test_notebook(nb):
|
||||||
# run %pylab inline, because some notebooks assume this
|
|
||||||
# even though they shouldn't
|
|
||||||
km = KernelManager()
|
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'))
|
stderr=open(os.devnull, 'w'))
|
||||||
|
|
||||||
kc = km.client()
|
kc = km.client()
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue