diff options
| author | Jason R. Coombs <jaraco@jaraco.com> | 2021-07-04 11:35:08 -0400 |
|---|---|---|
| committer | Jason R. Coombs <jaraco@jaraco.com> | 2021-07-04 11:35:08 -0400 |
| commit | 43fa2144bfcfb47c15d1d323d7c855c883bc510e (patch) | |
| tree | 5b1ced51464889149f5bb0eaa27ff17ea940bdf8 | |
| parent | 88f5c729bdb83a8e392959aaef4c781a371f97e3 (diff) | |
| download | python-setuptools-git-43fa2144bfcfb47c15d1d323d7c855c883bc510e.tar.gz | |
Ensure that the result contains only the one file, not all the different symlink variants to the same file.
| -rw-r--r-- | distutils/tests/test_filelist.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/distutils/tests/test_filelist.py b/distutils/tests/test_filelist.py index b56f82e4..9ec507b5 100644 --- a/distutils/tests/test_filelist.py +++ b/distutils/tests/test_filelist.py @@ -335,8 +335,11 @@ class FindAllTestCase(unittest.TestCase): 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(): |
