Skip to content

Commit

Permalink
Normalize path on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
mwouts committed Nov 9, 2019
1 parent d347aa3 commit c189035
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 @@ -545,7 +545,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.lower()]
assert os.path.normpath(get_kernel_spec(kernel_name).argv[0]) in ['python', sys.executable]


@pytest.mark.parametrize('py_file', list_notebooks('python'))
Expand All @@ -559,7 +559,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.lower()]
assert os.path.normpath(get_kernel_spec(kernel_name).argv[0]) in ['python', sys.executable]


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

0 comments on commit c189035

Please sign in to comment.