Commit 3c0d3a91 authored by Jason R. Coombs's avatar Jason R. Coombs

Update docstring and test to match long-standing expectation in behavior.

parent 9366bb09
......@@ -137,8 +137,9 @@ class Command(_Command):
distutils.core.Command = Command # we can't patch distutils.cmd, alas
def findall(dir = os.curdir):
"""Find all files under 'dir' and return the list of full filenames
(relative to 'dir').
"""
Find all files under 'dir' and return the list of full filenames.
Unless dir is '.', return full filenames with dir prepended.
"""
all_files = []
for base, dirs, files in os.walk(dir, followlinks=True):
......
......@@ -14,6 +14,7 @@ def example_source(tmpdir):
def test_findall(example_source):
found = list(setuptools.findall(str(example_source)))
expected = ['readme.txt', 'foo/bar.py']
expected = [example_source.join(fn) for fn in expected]
assert found == expected
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment