Skip to content

Commit

Permalink
Fix expected Windows error message
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Dec 5, 2023
1 parent 7867165 commit 9285547
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1315,7 +1315,7 @@ def test_move(tmpdir, src_path, dst_path):
audeer.mkdir(tmp_dir, dst_path)
audeer.touch(tmp_dir, dst_path, 'file.txt')
if system == 'Windows':
error_msg = 'Access denied'
error_msg = 'Access is denied'
else:
error_msg = 'Is a directory'
with pytest.raises(OSError, match=error_msg):
Expand All @@ -1339,7 +1339,7 @@ def test_move(tmpdir, src_path, dst_path):
audeer.touch(tmp_dir, src_path, 'file.txt')
audeer.touch(tmp_dir, dst_path)
if system == 'Windows':
error_msg = 'Access denied'
error_msg = 'Access is denied'
else:
error_msg = 'Not a directory'
with pytest.raises(OSError, match=error_msg):
Expand Down

0 comments on commit 9285547

Please sign in to comment.