Skip to content

Commit 4db270c

Browse files
committed
Skip jupyter test for Python < 3.6
1 parent 6127f7c commit 4db270c

File tree

1 file changed

+6
-4
lines changed

1 file changed

+6
-4
lines changed

example/test_examples.py

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,10 @@
22
import subprocess
33
import tempfile
44
import nbformat
5-
5+
import sys
66
from example import basic_example as be
77
from numpy.testing import assert_allclose
8+
import pytest
89

910

1011
class TestExamples:
@@ -42,8 +43,9 @@ def _notebook_run(self, path):
4243

4344
return nb, errors
4445

46+
@pytest.mark.skipif(sys.version_info < (3, 6), reason="requires python3.6")
4547
def test_basic_example_ipynb(self):
4648
dir_path = os.path.dirname(os.path.realpath(__file__))
47-
nb, errors = self._notebook_run(os.path.join(dir_path,
48-
'basic_example.ipynb'))
49-
assert errors == []
49+
nb, errors = self._notebook_run(
50+
os.path.join(dir_path, 'basic_example.ipynb'))
51+
assert errors == []

0 commit comments

Comments
 (0)