Skip to content

Commit 469442c

Browse files
committed
fixes test on Windows
1 parent 98bafff commit 469442c

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

tests/test_soundfile.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -592,7 +592,8 @@ def test_file_content(sf_stereo_r):
592592

593593
def test_file_attributes_in_read_mode(sf_stereo_r):
594594
if isinstance(sf_stereo_r.name, str):
595-
assert sf_stereo_r.name == filename_stereo
595+
# wrap in pathlib, to make tests pass on Windows:
596+
assert pathlib.Path(sf_stereo_r.name) == pathlib.Path(filename_stereo)
596597
elif not isinstance(sf_stereo_r.name, int):
597598
assert sf_stereo_r.name.name == filename_stereo
598599
assert sf_stereo_r.mode == 'r'

0 commit comments

Comments
 (0)