[Python-checkins] cpython (3.4): Use modern mechanism for test discovery

jason.coombs python-checkins at python.org
Thu Sep 1 21:17:07 EDT 2016


https://hg.python.org/cpython/rev/cc86e9e102e8
changeset:   102990:cc86e9e102e8
branch:      3.4
parent:      102714:675e20c38fda
user:        Jason R. Coombs <jaraco at jaraco.com>
date:        Sun Aug 30 13:13:11 2015 -0400
summary:
  Use modern mechanism for test discovery

files:
  Lib/distutils/tests/test_filelist.py |  7 ++-----
  1 files changed, 2 insertions(+), 5 deletions(-)


diff --git a/Lib/distutils/tests/test_filelist.py b/Lib/distutils/tests/test_filelist.py
--- a/Lib/distutils/tests/test_filelist.py
+++ b/Lib/distutils/tests/test_filelist.py
@@ -7,7 +7,7 @@
 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 @@
         self.assertWarnings()
 
 
-def test_suite():
-    return unittest.makeSuite(FileListTestCase)
-
 if __name__ == "__main__":
-    run_unittest(test_suite())
+    unittest.main()

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list