diff options
author | Jason R. Coombs <jaraco@jaraco.com> | 2015-08-30 17:22:56 (GMT) |
---|---|---|
committer | Jason R. Coombs <jaraco@jaraco.com> | 2015-08-30 17:22:56 (GMT) |
commit | a0c6c1c6598173a524633c9b8fb23780f794b998 (patch) | |
tree | 2dec646f0657285fdc007455b735d5b9dc7acc77 /Lib/distutils/tests/test_filelist.py | |
parent | fa5e7cf997df3cd011c4e2e9742811c0822a7f5c (diff) | |
download | cpython-a0c6c1c6598173a524633c9b8fb23780f794b998.zip cpython-a0c6c1c6598173a524633c9b8fb23780f794b998.tar.gz cpython-a0c6c1c6598173a524633c9b8fb23780f794b998.tar.bz2 |
Issue #12285: Add test capturing failure.
Diffstat (limited to 'Lib/distutils/tests/test_filelist.py')
-rw-r--r-- | Lib/distutils/tests/test_filelist.py | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/Lib/distutils/tests/test_filelist.py b/Lib/distutils/tests/test_filelist.py index 278809c..6b3bde0 100644 --- a/Lib/distutils/tests/test_filelist.py +++ b/Lib/distutils/tests/test_filelist.py @@ -6,7 +6,9 @@ from distutils import debug from distutils.log import WARN from distutils.errors import DistutilsTemplateError from distutils.filelist import glob_to_re, translate_pattern, FileList +from distutils import filelist +import test.support from test.support import captured_stdout from distutils.tests import support @@ -292,5 +294,13 @@ class FileListTestCase(support.LoggingSilencer, self.assertWarnings() +class FindAllTestCase(unittest.TestCase): + @test.support.skip_unless_symlink + def test_missing_symlink(self): + with test.support.temp_cwd(): + os.symlink('foo', 'bar') + self.assertEqual(filelist.findall(), []) + + if __name__ == "__main__": unittest.main() |