Skip to content

Commit

Permalink
Force posix path for windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TheChymera committed Sep 8, 2022
1 parent 8928e26 commit 5aa69e9
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions dandi/tests/test_validate.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ def test_validate_bids_errors(bids_error_examples, dataset):
# This only checks that the error we found is correct, not that we found all errors.
# ideally make a list and erode etc.
import json
import pathlib

from ..validate import validate_bids

Expand All @@ -57,6 +58,7 @@ def test_validate_bids_errors(bids_error_examples, dataset):
if i.path:
error_path = i.path
relative_error_path = os.path.relpath(error_path, i.dataset_path)
relative_error_path = pathlib.Path(relative_error_path).as_posix()
assert (
relative_error_path
in expected_errors[error_id.lstrip("BIDS.")]["scope"]
Expand Down

0 comments on commit 5aa69e9

Please sign in to comment.