| 1 |
"""Test suite for distutils. |
| 2 |
|
| 3 |
This test suite consists of a collection of test modules in the |
| 4 |
distutils.tests package. |
| 5 |
|
| 6 |
Tests for the command classes in the distutils.command package are |
| 7 |
included in distutils.tests as well, instead of using a separate |
| 8 |
distutils.command.tests package, since command identification is done |
| 9 |
by import rather than matching pre-defined names. |
| 10 |
|
| 11 |
""" |
| 12 |
|
| 13 |
import os |
| 14 |
import unittest |
| 15 |
from test.support.warnings_helper import save_restore_warnings_filters |
| 16 |
from test.support import warnings_helper |
| 17 |
from test.support import load_package_tests |
| 18 |
|
| 19 |
|
| 20 |
def load_tests(*args): |
| 21 |
|
| 22 |
|
| 23 |
|
| 24 |
with (save_restore_warnings_filters(), |
| 25 |
warnings_helper.check_warnings( |
| 26 |
("The distutils.sysconfig module is deprecated", DeprecationWarning), |
| 27 |
quiet=True)): |
| 28 |
return load_package_tests(os.path.dirname(__file__), *args) |
| 29 |
|
| 30 |
if __name__ == "__main__": |
| 31 |
unittest.main() |