Skip to content

Commit fa5e7cf

Browse files
committed
Use modern mechanism for test discovery
1 parent a12d92b commit fa5e7cf

1 file changed

Lines changed: 2 additions & 5 deletions

File tree

Lib/distutils/tests/test_filelist.py

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
from distutils.errors import DistutilsTemplateError
88
from distutils.filelist import glob_to_re, translate_pattern, FileList
99

10-
from test.support import captured_stdout, run_unittest
10+
from test.support import captured_stdout
1111
from distutils.tests import support
1212

1313
MANIFEST_IN = """\
@@ -292,8 +292,5 @@ def test_process_template(self):
292292
self.assertWarnings()
293293

294294

295-
def test_suite():
296-
return unittest.makeSuite(FileListTestCase)
297-
298295
if __name__ == "__main__":
299-
run_unittest(test_suite())
296+
unittest.main()

0 commit comments

Comments
 (0)