Skip to content

Commit

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

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

0 comments on commit 1ef5a27

Please sign in to comment.