Make sure each test can be run standalone (./python Lib/distutils/tests/x.py)
diff --git a/Lib/distutils/tests/test_install_lib.py b/Lib/distutils/tests/test_install_lib.py
index 99a6d90..790d4ce 100644
--- a/Lib/distutils/tests/test_install_lib.py
+++ b/Lib/distutils/tests/test_install_lib.py
@@ -7,6 +7,7 @@
from distutils.extension import Extension
from distutils.tests import support
from distutils.errors import DistutilsOptionError
+from test.support import run_unittest
class InstallLibTestCase(support.TempdirManager,
support.LoggingSilencer,
@@ -98,4 +99,4 @@
return unittest.makeSuite(InstallLibTestCase)
if __name__ == "__main__":
- unittest.main(defaultTest="test_suite")
+ run_unittest(test_suite())