Skip to content

Commit 33f62a6

Browse files
committed
Skip test_import_without_setup if JULIA_EXE is set
1 parent a1f0b4b commit 33f62a6

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

test/test_core.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@
1212
import sys
1313
import os
1414

15+
import pytest
16+
1517
python_version = sys.version_info
1618

1719

@@ -121,6 +123,10 @@ def test_module_dir(self):
121123
from julia import Base
122124
assert 'resize_b' in dir(Base)
123125

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

0 commit comments

Comments
 (0)