... | ... |
@@ -1,7 +1,15 @@ |
1 |
-import ipykernel.iostream |
|
2 |
-import zmq |
|
1 |
+import pytest |
|
3 | 2 |
|
3 |
+try: |
|
4 |
+ import ipykernel.iostream |
|
5 |
+ import zmq |
|
4 | 6 |
|
7 |
+ with_notebook_dependencies = True |
|
8 |
+except ImportError: |
|
9 |
+ with_notebook_dependencies = False |
|
10 |
+ |
|
11 |
+ |
|
12 |
+@pytest.mark.skipif(not with_notebook_dependencies) |
|
5 | 13 |
def test_private_api_used_in_live_info(): |
6 | 14 |
"""We are catching all errors in |
7 | 15 |
adaptive.notebook_integration.should_update |
... | ... |
@@ -65,4 +65,4 @@ include_trailing_comma=True |
65 | 65 |
force_grid_wrap=0 |
66 | 66 |
use_parentheses=True |
67 | 67 |
line_length=88 |
68 |
-known_third_party=PIL,atomicwrites,holoviews,ipykernel,matplotlib,nbconvert,numpy,pytest,scipy,setuptools,skopt,sortedcollections,sortedcontainers,zmq |
|
68 |
+known_third_party=PIL,atomicwrites,holoviews,matplotlib,nbconvert,numpy,pytest,scipy,setuptools,skopt,sortedcollections,sortedcontainers |