Staging
v0.5.1
https://github.com/python/cpython
Raw File
Tip revision: 8e7c1178a03de3e0bff7b019a56ff9a3493b0929 authored by Benjamin Peterson on 06 March 2010, 20:34:14 UTC
bump version to 2.7a4
Tip revision: 8e7c117
test_distutils.py
"""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()
back to top