summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorJason R. Coombs <jaraco@jaraco.com>2015-08-30 17:13:11 (GMT)
committerJason R. Coombs <jaraco@jaraco.com>2015-08-30 17:13:11 (GMT)
commitfa5e7cf997df3cd011c4e2e9742811c0822a7f5c (patch)
treed4eb062ef602bcd182b016e7f41f952728fed623 /Lib
parenta12d92bec1858a76f2c5519bce07c8a00a891207 (diff)
downloadcpython-fa5e7cf997df3cd011c4e2e9742811c0822a7f5c.zip
cpython-fa5e7cf997df3cd011c4e2e9742811c0822a7f5c.tar.gz
cpython-fa5e7cf997df3cd011c4e2e9742811c0822a7f5c.tar.bz2
Use modern mechanism for test discovery
Diffstat (limited to 'Lib')
-rw-r--r--Lib/distutils/tests/test_filelist.py7
1 files changed, 2 insertions, 5 deletions
diff --git a/Lib/distutils/tests/test_filelist.py b/Lib/distutils/tests/test_filelist.py
index e82bc3d..278809c 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()