Fix script running IPython tests
* tests/python/ipnbdoctest.py: skip test when jupyter is not found
This commit is contained in:
parent
7b2517a518
commit
d358521b3a
1 changed files with 6 additions and 2 deletions
|
|
@ -35,8 +35,12 @@ except ImportError:
|
|||
try:
|
||||
from IPython.kernel import KernelManager
|
||||
except ImportError:
|
||||
from IPython.zmq.blockingkernelmanager \
|
||||
import BlockingKernelManager as KernelManager
|
||||
try:
|
||||
from IPython.zmq.blockingkernelmanager \
|
||||
import BlockingKernelManager as KernelManager
|
||||
except:
|
||||
print('IPython is needed to run this script.')
|
||||
sys.exit(77)
|
||||
|
||||
# Until Debian Stable ships IPython >3.0, we stick to the v3 format.
|
||||
try:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue