From e551befe82f545c41937d39308b244a9cf8e7c39 Mon Sep 17 00:00:00 2001 From: Takafumi Arakaki Date: Fri, 17 Aug 2018 21:14:23 -0700 Subject: [PATCH] Skip test_import_without_setup if JULIA_EXE is set --- test/test_core.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/test/test_core.py b/test/test_core.py index c1e2720c..09b5e0c6 100644 --- a/test/test_core.py +++ b/test/test_core.py @@ -12,6 +12,8 @@ import sys import os +import pytest + python_version = sys.version_info @@ -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)