Skip to content

Commit

Permalink
Skip jupyter test for Python < 3.6
Browse files Browse the repository at this point in the history
  • Loading branch information
uvchik committed Dec 12, 2018
1 parent 6127f7c commit 4db270c
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions example/test_examples.py
Expand Up @@ -2,9 +2,10 @@
import subprocess
import tempfile
import nbformat

import sys
from example import basic_example as be
from numpy.testing import assert_allclose
import pytest


class TestExamples:
Expand Down Expand Up @@ -42,8 +43,9 @@ def _notebook_run(self, path):

return nb, errors

@pytest.mark.skipif(sys.version_info < (3, 6), reason="requires python3.6")
def test_basic_example_ipynb(self):
dir_path = os.path.dirname(os.path.realpath(__file__))
nb, errors = self._notebook_run(os.path.join(dir_path,
'basic_example.ipynb'))
assert errors == []
nb, errors = self._notebook_run(
os.path.join(dir_path, 'basic_example.ipynb'))
assert errors == []

0 comments on commit 4db270c

Please sign in to comment.