2004-06-15 12:49:46 -03:00
|
|
|
"""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
|
2010-01-31 07:46:54 -04:00
|
|
|
import warnings
|
2004-06-15 12:49:46 -03:00
|
|
|
|
|
|
|
|
|
|
|
def test_main():
|
2010-01-31 07:46:54 -04:00
|
|
|
with warnings.catch_warnings():
|
|
|
|
warnings.filterwarnings("ignore",
|
|
|
|
"distutils.sysconfig.\w+ is deprecated",
|
|
|
|
DeprecationWarning)
|
|
|
|
test.test_support.run_unittest(distutils.tests.test_suite())
|
2009-10-27 17:20:41 -03:00
|
|
|
test.test_support.reap_children()
|
2004-06-15 12:49:46 -03:00
|
|
|
|
|
|
|
|
|
|
|
if __name__ == "__main__":
|
|
|
|
test_main()
|