From 2c5278ad30c2883a9d64e834d38119bb96487396 Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Sun, 30 Aug 2015 13:26:48 -0400 Subject: [PATCH] Add another test capturing the basic discovery expectation. --- Lib/distutils/tests/test_filelist.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/Lib/distutils/tests/test_filelist.py b/Lib/distutils/tests/test_filelist.py index 6b3bde0d9b..45ff565373 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() -- 2.40.0