Skip to content

Commit

Permalink
Fix test on windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Sep 15, 2019
1 parent a589a8c commit 77ccce9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -542,7 +542,7 @@ def test_set_kernel_inplace(py_file, tmpdir):

nb = read(tmp_py)
kernel_name = nb.metadata['kernelspec']['name']
assert get_kernel_spec(kernel_name).argv[0].lower() in ['python', sys.executable]
assert get_kernel_spec(kernel_name).argv[0].lower() in ['python', sys.executable.lower()]


@pytest.mark.parametrize('py_file', list_notebooks('python'))
Expand All @@ -556,7 +556,7 @@ def test_set_kernel_auto(py_file, tmpdir):

nb = read(tmp_ipynb)
kernel_name = nb.metadata['kernelspec']['name']
assert get_kernel_spec(kernel_name).argv[0].lower() in ['python', sys.executable]
assert get_kernel_spec(kernel_name).argv[0].lower() in ['python', sys.executable.lower()]


@pytest.mark.parametrize('py_file', list_notebooks('python'))
Expand Down

0 comments on commit 77ccce9

Please sign in to comment.