Skip to content

Commit

Permalink
skip json test on python2
Browse files Browse the repository at this point in the history
  • Loading branch information
phobson committed Nov 15, 2018
1 parent 5f6b772 commit 7fe963f
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions pygridgen/tests/test_grid.py
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
import tempfile
import json
import os
import sys

import numpy

Expand All @@ -15,6 +16,8 @@

import pygridgen

PY27 = sys.version_info.major == 2


def boundary_planar():
x = [0.0, 1.0, 2.0, 1.0, 0.0]
Expand Down Expand Up @@ -624,6 +627,7 @@ def test_gridgen_to_from_spec(simple_grid, use_focus):
numpy.testing.assert_array_almost_equal(simple_grid.y, grid2.y)


@pytest.mark.skipif(PY27, reason='Test on Python >3.4 only')
def test_gridgen_spec_valid_json(simple_grid):
with tempfile.TemporaryDirectory() as folder:
with open(os.path.join(folder, 'test.json'), 'w') as gridjson:
Expand Down

0 comments on commit 7fe963f

Please sign in to comment.