mirror of
https://github.com/python/cpython.git
synced 2025-09-27 02:39:58 +00:00
Make sure each test can be run standalone (./python Lib/distutils/tests/x.py)
This commit is contained in:
parent
1c5054996f
commit
70ec44a773
41 changed files with 86 additions and 56 deletions
|
@ -12,7 +12,7 @@ from distutils.archive_util import (check_archive_formats, make_tarball,
|
|||
ARCHIVE_FORMATS)
|
||||
from distutils.spawn import find_executable, spawn
|
||||
from distutils.tests import support
|
||||
from test.support import check_warnings
|
||||
from test.support import check_warnings, run_unittest
|
||||
|
||||
try:
|
||||
import zipfile
|
||||
|
@ -211,4 +211,4 @@ def test_suite():
|
|||
return unittest.makeSuite(ArchiveUtilTestCase)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main(defaultTest="test_suite")
|
||||
run_unittest(test_suite())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue