1"""Tests for distutils.
2
3The tests for distutils are defined in the distutils.tests package;
4the test_suite() function there returns a test suite that's ready to
5be run.
6"""
7
8import warnings
9from test import support
10from test.support import warnings_helper
11
12with warnings_helper.check_warnings(
13    ("The distutils package is deprecated", DeprecationWarning), quiet=True):
14
15    import distutils.tests
16
17
18def load_tests(*_):
19    # used by unittest
20    return distutils.tests.test_suite()
21
22
23def tearDownModule():
24    support.reap_children()
25
26
27if __name__ == "__main__":
28    unittest.main()
29