Skip to content

Commit

Permalink
fix test
Browse files Browse the repository at this point in the history
  • Loading branch information
Quentin Peter committed Nov 11, 2023
1 parent 5912e24 commit 823a5b7
Showing 1 changed file with 3 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@
from spyder.config.manager import CONF
from spyder.py3compat import to_text_string
from spyder_kernels_server.kernel_spec import get_kernel_spec
from spyder.plugins.ipythonconsole.tests.conftest import ipyconsole


@pytest.mark.parametrize('default_interpreter', [True, False])
Expand All @@ -33,7 +34,7 @@ def test_kernel_pypath(ipyconsole, tmpdir, default_interpreter):
os.environ['PYTHONPATH'] = pypath
CONF.set('pythonpath_manager', 'spyder_pythonpath', [pypath])

kernel_spec = get_kernel_spec(ipyconsole.get_kernel_spec_dict())
kernel_spec = get_kernel_spec(ipyconsole.get_widget().get_kernel_spec_dict())

# Check that PYTHONPATH is not in our kernelspec
# and pypath is in SPY_PYTHONPATH
Expand All @@ -55,7 +56,7 @@ def test_python_interpreter(ipyconsole, tmpdir):
CONF.set('main_interpreter', 'executable', interpreter)

# Create a kernel spec
kernel_spec = get_kernel_spec(ipyconsole.get_kernel_spec_dict())
kernel_spec = get_kernel_spec(ipyconsole.get_widget().get_kernel_spec_dict())

# Assert that the python interprerter is the default one
assert interpreter not in kernel_spec.argv
Expand Down

0 comments on commit 823a5b7

Please sign in to comment.