Commit 2cf60393 authored by Jason R. Coombs's avatar Jason R. Coombs

Use modern mechanism for test discovery

parent ee60d422
...@@ -7,7 +7,7 @@ from distutils.log import WARN ...@@ -7,7 +7,7 @@ from distutils.log import WARN
from distutils.errors import DistutilsTemplateError from distutils.errors import DistutilsTemplateError
from distutils.filelist import glob_to_re, translate_pattern, FileList 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 from distutils.tests import support
MANIFEST_IN = """\ MANIFEST_IN = """\
...@@ -292,8 +292,5 @@ class FileListTestCase(support.LoggingSilencer, ...@@ -292,8 +292,5 @@ class FileListTestCase(support.LoggingSilencer,
self.assertWarnings() self.assertWarnings()
def test_suite():
return unittest.makeSuite(FileListTestCase)
if __name__ == "__main__": if __name__ == "__main__":
run_unittest(test_suite()) unittest.main()
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment