Make sure each test can be run standalone (./python Lib/distutils/tests/x.py)

This commit is contained in:
Éric Araujo 2010-11-06 02:44:43 +00:00
parent 1c5054996f
commit 70ec44a773
41 changed files with 86 additions and 56 deletions

View file

@ -10,6 +10,7 @@ from distutils.dir_util import (mkpath, remove_tree, create_tree, copy_tree,
from distutils import log
from distutils.tests import support
from test.support import run_unittest
class DirUtilTestCase(support.TempdirManager, unittest.TestCase):
@ -112,4 +113,4 @@ def test_suite():
return unittest.makeSuite(DirUtilTestCase)
if __name__ == "__main__":
unittest.main(defaultTest="test_suite")
run_unittest(test_suite())