1"""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 unittest
9from test import support
10from test.support import warnings_helper
11
12with warnings_helper.check_warnings(
13    ("The distutils package is deprecated", DeprecationWarning), quiet=True):
14
15    import distutils.tests
16
17
18def load_tests(*_):
19    # used by unittest
20    return distutils.tests.test_suite()
21
22
23def tearDownModule():
24    support.reap_children()
25
26if support.check_sanitizer(address=True):
27    raise unittest.SkipTest("Exposes ASAN flakiness in GitHub CI")
28
29if __name__ == "__main__":
30    unittest.main()
31