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:
|
try:
|
||||||
from IPython.kernel import KernelManager
|
from IPython.kernel import KernelManager
|
||||||
except ImportError:
|
except ImportError:
|
||||||
from IPython.zmq.blockingkernelmanager \
|
try:
|
||||||
import BlockingKernelManager as KernelManager
|
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.
|
# Until Debian Stable ships IPython >3.0, we stick to the v3 format.
|
||||||
try:
|
try:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue