Skip to content

Commit

Permalink
Try to fix Windows test
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Dec 5, 2023
1 parent a5c76c0 commit ae1b9d7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1362,7 +1362,8 @@ def test_move(tmpdir, src_path, dst_path):

# src: empty folder
# dst: file
os.remove(os.path.join(tmp_dir, src_path, 'file.txt'))
if os.path.exists(os.path.join(tmp_dir, src_path, 'file.txt')):
os.remove(os.path.join(tmp_dir, src_path, 'file.txt'))
if system != 'Windows':
error_msg = 'Not a directory'
with pytest.raises(OSError, match=error_msg):
Expand Down

0 comments on commit ae1b9d7

Please sign in to comment.