Staging
v0.5.1
https://github.com/python/cpython
Revision ce6e4b0930f3beaff0d2d11f7473d295d87866c5 authored by R. David Murray on 06 February 2010, 04:27:21 UTC, committed by R. David Murray on 06 February 2010, 04:27:21 UTC
causing buildbot failures.  Changed to use test_support.bind_port.
Patch by Florent Xicluna.
1 parent 0877060
Raw File
Tip revision: ce6e4b0930f3beaff0d2d11f7473d295d87866c5 authored by R. David Murray on 06 February 2010, 04:27:21 UTC
issue #7728: test_timeout was using a hardcoded port, which was
Tip revision: ce6e4b0
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