Skip to content

Commit

Permalink
Add test capturing failure. Ref pypa/distutils#44.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Jul 4, 2021
1 parent b22adf8 commit fc49652
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions setuptools/_distutils/tests/test_filelist.py
Original file line number Diff line number Diff line change
Expand Up @@ -331,6 +331,13 @@ def test_non_local_discovery(self):
expected = [file1]
self.assertEqual(filelist.findall(temp_dir), expected)

@os_helper.skip_unless_symlink
def test_symlink_loop(self):
with os_helper.temp_dir() as temp_dir:
link = os.path.join(temp_dir, 'link-to-parent')
os.symlink('.', link)
filelist.findall(temp_dir)


def test_suite():
return unittest.TestSuite([
Expand Down

0 comments on commit fc49652

Please sign in to comment.