summaryrefslogtreecommitdiffstats
path: root/Lib/distutils
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-08-30 17:26:48 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2015-08-30 17:26:48 (GMT)
commit2c5278ad30c2883a9d64e834d38119bb96487396 (patch)
treebca27f0f7da7704aa91e2d00916e738cb6097250 /Lib/distutils
parenta0c6c1c6598173a524633c9b8fb23780f794b998 (diff)
downloadcpython-2c5278ad30c2883a9d64e834d38119bb96487396.zip
cpython-2c5278ad30c2883a9d64e834d38119bb96487396.tar.gz
cpython-2c5278ad30c2883a9d64e834d38119bb96487396.tar.bz2
Add another test capturing the basic discovery expectation.
Diffstat (limited to 'Lib/distutils')
-rw-r--r--Lib/distutils/tests/test_filelist.py11
1 files changed, 11 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_filelist.py b/Lib/distutils/tests/test_filelist.py
index 6b3bde0..45ff565 100644
--- a/Lib/distutils/tests/test_filelist.py
+++ b/Lib/distutils/tests/test_filelist.py
@@ -301,6 +301,17 @@ class FindAllTestCase(unittest.TestCase):
os.symlink('foo', 'bar')
self.assertEqual(filelist.findall(), [])
+ def test_basic_discovery(self):
+ with test.support.temp_cwd():
+ os.mkdir('foo')
+ file1 = os.path.join('foo', 'file1.txt')
+ test.support.create_empty_file(file1)
+ os.mkdir('bar')
+ file2 = os.path.join('bar', 'file2.txt')
+ test.support.create_empty_file(file2)
+ expected = [file1, file2]
+ self.assertEqual(filelist.findall(), expected)
+
if __name__ == "__main__":
unittest.main()