From: Jason R. Coombs Date: Sun, 30 Aug 2015 17:13:11 +0000 (-0400) Subject: Use modern mechanism for test discovery X-Git-Tag: v3.4.6rc1~26 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=fa5e7cf997df3cd011c4e2e9742811c0822a7f5c;p=python Use modern mechanism for test discovery --- diff --git a/Lib/distutils/tests/test_filelist.py b/Lib/distutils/tests/test_filelist.py index e82bc3d2ed..278809c09b 100644 --- a/Lib/distutils/tests/test_filelist.py +++ b/Lib/distutils/tests/test_filelist.py @@ -7,7 +7,7 @@ from distutils.log import WARN from distutils.errors import DistutilsTemplateError from distutils.filelist import glob_to_re, translate_pattern, FileList -from test.support import captured_stdout, run_unittest +from test.support import captured_stdout from distutils.tests import support MANIFEST_IN = """\ @@ -292,8 +292,5 @@ class FileListTestCase(support.LoggingSilencer, self.assertWarnings() -def test_suite(): - return unittest.makeSuite(FileListTestCase) - if __name__ == "__main__": - run_unittest(test_suite()) + unittest.main()