Skip to content

Commit dc8fd2c

Browse files
committed
let's skip ipynb tests in python 2.x
1 parent d8b39f1 commit dc8fd2c

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tests/test_ipynb.py

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,5 +36,9 @@ def _notebook_run(path):
3636

3737

3838
def test_ipynb():
39-
nb, errors = _notebook_run('notebook/life_expectancy.ipynb')
40-
assert errors == []
39+
if PY2:
40+
print("Ignored ipynb tests in python 2")
41+
pass
42+
else:
43+
nb, errors = _notebook_run('notebook/life_expectancy.ipynb')
44+
assert errors == []

0 commit comments

Comments
 (0)