]> granicus.if.org Git - python/commitdiff
Use modern mechanism for test discovery
authorJason R. Coombs <jaraco@jaraco.com>
Sun, 30 Aug 2015 17:13:11 +0000 (13:13 -0400)
committerJason R. Coombs <jaraco@jaraco.com>
Sun, 30 Aug 2015 17:13:11 +0000 (13:13 -0400)
Lib/distutils/tests/test_filelist.py

index e82bc3d2ed74f11a65d0e7e376f78276473e81ef..278809c09b986b612ae136c7ec41cb87382371ba 100644 (file)
@@ -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()