blob: 4b40af0213234e1a3bf90d06789dc89a448e93da [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
Victor Stinner69ca32e2021-04-16 11:26:40 +02008import warnings
9from test import support
10from test.support import warnings_helper
11
12with warnings_helper.check_warnings(
Steve Dowerc1a95352021-04-28 16:21:55 +010013 ("The distutils package is deprecated", DeprecationWarning), quiet=True):
Victor Stinner69ca32e2021-04-16 11:26:40 +020014
15 import distutils.tests
Fred Drakebb7c1442004-06-15 15:49:46 +000016
17
Toshio Kuratomi997443c2020-01-27 04:08:39 -080018def load_tests(*_):
19 # used by unittest
20 return distutils.tests.test_suite()
21
22
Serhiy Storchakabedce352021-09-19 22:36:03 +030023def tearDownModule():
24 support.reap_children()
25
26
Fred Drakebb7c1442004-06-15 15:49:46 +000027if __name__ == "__main__":
Serhiy Storchakabedce352021-09-19 22:36:03 +030028 unittest.main()