blob: 0a54c5709585d6a71b3ed35ad967723e009e1077 [file] [log] [blame]
Fred Drakebb7c1442004-06-15 15:49:46 +00001"""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 distutils.tests
9import test.test_support
Ezio Melottief490962010-01-31 11:46:54 +000010import warnings
Fred Drakebb7c1442004-06-15 15:49:46 +000011
12
13def test_main():
Ezio Melottief490962010-01-31 11:46:54 +000014 with warnings.catch_warnings():
15 warnings.filterwarnings("ignore",
16 "distutils.sysconfig.\w+ is deprecated",
17 DeprecationWarning)
18 test.test_support.run_unittest(distutils.tests.test_suite())
Antoine Pitroucb170102009-10-27 20:20:41 +000019 test.test_support.reap_children()
Fred Drakebb7c1442004-06-15 15:49:46 +000020
21
22if __name__ == "__main__":
23 test_main()