Skip to content

Commit

Permalink
skip recfile tests on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
esheldon committed Jun 19, 2024
1 parent 8d7ca4b commit b0cea71
Show file tree
Hide file tree
Showing 3 changed files with 10 additions and 11 deletions.
1 change: 0 additions & 1 deletion .github/workflows/test-windows.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -34,5 +34,4 @@ jobs:
- name: test
run: |
pip install pytest
set SKIP_RECFILE_TESTS="true"
pytest -vv esutil
8 changes: 4 additions & 4 deletions esutil/tests/test_recfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -176,8 +176,8 @@ def compare_rec(rec1, rec2, name):
assert w.size == 0, "testing column %s" % f


@pytest.mark.skipif('SKIP_RECFILE_TESTS' in os.environ,
reason='SKIP_RECFILE_TESTS set')
@pytest.mark.skipif(os.name == 'nt',
reason='skip recfile tests on windows')
@pytest.mark.parametrize('delim', [None, ",", ":", "\t", " "])
@pytest.mark.parametrize('doswap', [False, True])
def test_recfile_writeread(delim, doswap):
Expand Down Expand Up @@ -216,8 +216,8 @@ def test_recfile_writeread(delim, doswap):
)


@pytest.mark.skipif('SKIP_RECFILE_TESTS' in os.environ,
reason='SKIP_RECFILE_TESTS set')
@pytest.mark.skipif(os.name == 'nt',
reason='skip recfile tests on windows')
@pytest.mark.parametrize('delim', [None, ",", ":", "\t", " "])
@pytest.mark.parametrize('doswap', [False, True])
def test_recfile_subsets(delim, doswap):
Expand Down
12 changes: 6 additions & 6 deletions esutil/tests/test_sfile.py
Original file line number Diff line number Diff line change
Expand Up @@ -195,8 +195,8 @@ def compare_rec(rec1, rec2, name):
assert w.size == 0, "testing column %s" % f


@pytest.mark.skipif('SKIP_RECFILE_TESTS' in os.environ,
reason='SKIP_RECFILE_TESTS set')
@pytest.mark.skipif(os.name == 'nt',
reason='skip recfile tests on windows')
@pytest.mark.parametrize('delim', [None, ",", ":", "\t", " "])
@pytest.mark.parametrize('doswap', [False, True])
def test_sfile_writeread(delim, doswap):
Expand Down Expand Up @@ -236,8 +236,8 @@ def test_sfile_writeread(delim, doswap):
compare_header(header, h)


@pytest.mark.skipif('SKIP_RECFILE_TESTS' in os.environ,
reason='SKIP_RECFILE_TESTS set')
@pytest.mark.skipif(os.name == 'nt',
reason='skip recfile tests on windows')
@pytest.mark.parametrize('delim', [None, ",", ":", "\t", " "])
@pytest.mark.parametrize('doswap', [False, True])
def test_sfile_subsets(delim, doswap):
Expand Down Expand Up @@ -377,8 +377,8 @@ def test_sfile_subsets(delim, doswap):
)


@pytest.mark.skipif('SKIP_RECFILE_TESTS' in os.environ,
reason='SKIP_RECFILE_TESTS set')
@pytest.mark.skipif(os.name == 'nt',
reason='skip recfile tests on windows')
@pytest.mark.parametrize('delim', [None, ",", ":", "\t", " "])
@pytest.mark.parametrize('doswap', [False, True])
def test_sfile_append(delim, doswap):
Expand Down

0 comments on commit b0cea71

Please sign in to comment.