From 269cff42f55c0f9f09048bcd83e38288351c94be Mon Sep 17 00:00:00 2001 From: Marcel Zwiers Date: Sun, 28 Jan 2024 17:07:22 +0100 Subject: [PATCH] Fix test for Windows paths --- tests/test_bids.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/tests/test_bids.py b/tests/test_bids.py index e80fc199..e9063fbf 100644 --- a/tests/test_bids.py +++ b/tests/test_bids.py @@ -336,7 +336,7 @@ def test_append_run(study_bidsmap): # Append the run elsewhere in the bidsmap bids.append_run(bidsmap, run) - assert bidsmap['Foo']['Bar'][0]['provenance'] == run['provenance'] + assert Path(bidsmap['Foo']['Bar'][0]['provenance']) == Path(run['provenance']) def test_update_bidsmap(study_bidsmap): @@ -350,8 +350,8 @@ def test_update_bidsmap(study_bidsmap): # Update the bidsmap bids.update_bidsmap(bidsmap, 'func', run) - assert bidsmap['DICOM']['anat'][-1]['provenance'] == run['provenance'] - assert bidsmap['DICOM']['func'] [0]['provenance'] != run['provenance'] + assert Path(bidsmap['DICOM']['anat'][-1]['provenance']) == Path(run['provenance']) + assert Path(bidsmap['DICOM']['func'] [0]['provenance']) != Path(run['provenance']) # Modify the last anat run-item and update the bidsmap run['bids']['foo'] = 'bar'