Skip to content

Commit

Permalink
TST: test for symbolic link in audeer.rmdir()
Browse files Browse the repository at this point in the history
  • Loading branch information
hagenw committed Jan 18, 2024
1 parent dc375de commit f4f9c71
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions tests/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -1466,6 +1466,13 @@ def test_rmdir(tmpdir):
audeer.rmdir("folder")
assert not os.path.exists(path)
os.chdir(current_path)
# Symlink
path = audeer.mkdir(tmpdir, "folder")
link = os.path.join(tmpdir, "link")
os.symlink(path, link)
audeer.rmdir(link)
assert not os.path.exists(link)
assert not os.path.exists(path)


def test_touch(tmpdir):
Expand Down

0 comments on commit f4f9c71

Please sign in to comment.