From 7b0655494a771467f7d0dcd246e881019c4cab28 Mon Sep 17 00:00:00 2001 From: Marcel Zwiers Date: Sun, 28 Jan 2024 15:38:03 +0100 Subject: [PATCH] Fix test for Windows paths --- tests/test_bids.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_bids.py b/tests/test_bids.py index e0016a99..157a3852 100644 --- a/tests/test_bids.py +++ b/tests/test_bids.py @@ -171,7 +171,7 @@ def test_load_bidsmap(study_bidsmap): bidsmap, _ = bids.load_bidsmap(Path('bidsmap_dccn')) assert type(bidsmap) == ruamel.yaml.comments.CommentedMap assert bidsmap != {} - assert bidsmap['DICOM']['anat'][0]['provenance'] == 'sub--unknown/ses--unknown/DICOM_anat_id001' + assert bidsmap['DICOM']['anat'][0]['provenance'] == str(Path('sub--unknown/ses--unknown/DICOM_anat_id001')) # Account for Windows paths # Test loading with a dummy argument bidsmap, filepath = bids.load_bidsmap(Path('dummy'))