Skip to content

Commit

Permalink
Skip test_import_without_setup if JULIA_EXE is set
Browse files Browse the repository at this point in the history
  • Loading branch information
tkf committed Aug 18, 2018
1 parent a1f0b4b commit e551bef
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions test/test_core.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,8 @@
import sys
import os

import pytest

python_version = sys.version_info


Expand Down Expand Up @@ -121,6 +123,10 @@ def test_module_dir(self):
from julia import Base
assert 'resize_b' in dir(Base)

@pytest.mark.skipif(
"JULIA_EXE" in orig_env,
reason=("cannot be tested with custom Julia executable;"
" JULIA_EXE is set to {}".format(orig_env["JULIA_EXE"])))
def test_import_without_setup(self):
command = [sys.executable, '-c', 'from julia import Base']
print('Executing:', *command)
Expand Down

0 comments on commit e551bef

Please sign in to comment.