mirror of
https://github.com/python/cpython.git
synced 2025-08-03 00:23:06 +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
|
@ -3,6 +3,7 @@ import os
|
|||
import sys
|
||||
import unittest
|
||||
from copy import copy
|
||||
from test.support import run_unittest
|
||||
|
||||
from distutils.errors import DistutilsPlatformError, DistutilsByteCompileError
|
||||
from distutils.util import (get_platform, convert_path, change_root,
|
||||
|
@ -274,4 +275,4 @@ def test_suite():
|
|||
return unittest.makeSuite(UtilTestCase)
|
||||
|
||||
if __name__ == "__main__":
|
||||
unittest.main(defaultTest="test_suite")
|
||||
run_unittest(test_suite())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue