]> granicus.if.org Git - python/commitdiff
Backed out changeset cc86e9e102e8
authorJason R. Coombs <jaraco@jaraco.com>
Fri, 2 Sep 2016 01:55:22 +0000 (21:55 -0400)
committerJason R. Coombs <jaraco@jaraco.com>
Fri, 2 Sep 2016 01:55:22 +0000 (21:55 -0400)
Lib/distutils/tests/test_filelist.py

index e719198c6d9cdce55ccf472ad08c7cc44e03d06f..391af3cba23f30d52dcb9c6006bef69bdce54b04 100644 (file)
@@ -9,7 +9,7 @@ from distutils.filelist import glob_to_re, translate_pattern, FileList
 from distutils import filelist
 
 import test.support
-from test.support import captured_stdout
+from test.support import captured_stdout, run_unittest
 from distutils.tests import support
 
 MANIFEST_IN = """\
@@ -329,5 +329,12 @@ class FindAllTestCase(unittest.TestCase):
             self.assertEqual(filelist.findall(temp_dir), expected)
 
 
+def test_suite():
+    return unittest.TestSuite([
+        unittest.makeSuite(FileListTestCase),
+        unittest.makeSuite(FindAllTestCase),
+    ])
+
+
 if __name__ == "__main__":
-    unittest.main()
+    run_unittest(test_suite())