summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_distutils.py
blob: 0a54c5709585d6a71b3ed35ad967723e009e1077 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
"""Tests for distutils.

The tests for distutils are defined in the distutils.tests package;
the test_suite() function there returns a test suite that's ready to
be run.
"""

import distutils.tests
import test.test_support
import warnings


def test_main():
    with warnings.catch_warnings():
        warnings.filterwarnings("ignore",
                                "distutils.sysconfig.\w+ is deprecated",
                                DeprecationWarning)
        test.test_support.run_unittest(distutils.tests.test_suite())
    test.test_support.reap_children()


if __name__ == "__main__":
    test_main()