Skip to content

Commit

Permalink
Ensure that the result contains only the one file, not all the differ…
Browse files Browse the repository at this point in the history
…ent symlink variants to the same file.
  • Loading branch information
jaraco committed Jul 4, 2021
1 parent 88f5c72 commit 43fa214
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion distutils/tests/test_filelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -335,8 +335,11 @@ def test_non_local_discovery(self):
def test_symlink_loop(self):
with os_helper.temp_dir() as temp_dir:
link = os.path.join(temp_dir, 'link-to-parent')
content = os.path.join(temp_dir, 'somefile')
os_helper.create_empty_file(content)
os.symlink('.', link)
filelist.findall(temp_dir)
files = filelist.findall(temp_dir)
assert len(files) == 1


def test_suite():
Expand Down

0 comments on commit 43fa214

Please sign in to comment.