Skip to content

Commit

Permalink
Skip test_build_and_load in AppVeyor
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Apr 12, 2019
1 parent cf64803 commit 2dfde3c
Show file tree
Hide file tree
Showing 4 changed files with 16 additions and 1 deletion.
4 changes: 4 additions & 0 deletions src/julia/sysimage.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@
Generated system image can be passed to ``sysimage`` option of
`julia.api.Julia`.
.. note::
This script is not tested on Windows.
"""

from __future__ import print_function, absolute_import
Expand Down
3 changes: 2 additions & 1 deletion src/julia/tests/test_sysimage.py
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
import pytest

from .test_compatible_exe import runcode
from .utils import only_in_ci
from .utils import only_in_ci, skip_in_appveyor
from julia.sysimage import build_sysimage


@pytest.mark.julia
@only_in_ci
@skip_in_appveyor # Avoid "LVM ERROR: out of memory"
def test_build_and_load(tmpdir, juliainfo):
if juliainfo.version_info < (0, 7):
pytest.skip("Julia < 0.7 is not supported")
Expand Down
7 changes: 7 additions & 0 deletions src/julia/tests/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,3 +8,10 @@
"""
Tests that are too destructive or slow to run with casual `tox` call.
"""

skip_in_appveyor = pytest.mark.skipif(
os.environ.get("APPVEYOR", "false").lower() == "true", reason="APPVEYOR=true is set"
)
"""
Tests that are known to fail in AppVeyor.
"""
3 changes: 3 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,9 @@ passenv =
TRAVIS
TRAVIS_*

# https://www.appveyor.com/docs/environment-variables/
APPVEYOR

CI

[pytest]
Expand Down

0 comments on commit 2dfde3c

Please sign in to comment.