Skip to content

Commit

Permalink
fix path function for Windows using os.path.normpath function
Browse files Browse the repository at this point in the history
  • Loading branch information
Agnieszka Żaba committed Oct 16, 2024
1 parent de5e405 commit 541d0c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test_notebooks.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@


def _relative_path(absolute_path):
return os.path.normpath(os.path.relpath(absolute_path, _repo_path().absolute()))
return os.path.relpath(absolute_path, _repo_path().absolute())


def _repo_path():
Expand All @@ -50,7 +50,7 @@ def _repo_path():
name="notebook_filename",
)
def _notebook_filename(request):
return request.param
return os.path.normpath(request.param)


def test_run_notebooks(notebook_filename, tmp_path):
Expand Down

0 comments on commit 541d0c4

Please sign in to comment.