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.
|
|
|
|
"""
|
|
|
|
|
2022-01-18 15:28:18 -04:00
|
|
|
import unittest
|
2021-04-16 06:26:40 -03:00
|
|
|
from test import support
|
|
|
|
from test.support import warnings_helper
|
|
|
|
|
|
|
|
with warnings_helper.check_warnings(
|
2021-04-28 12:21:55 -03:00
|
|
|
("The distutils package is deprecated", DeprecationWarning), quiet=True):
|
2021-04-16 06:26:40 -03:00
|
|
|
|
|
|
|
import distutils.tests
|
2004-06-15 12:49:46 -03:00
|
|
|
|
|
|
|
|
2020-01-27 08:08:39 -04:00
|
|
|
def load_tests(*_):
|
|
|
|
# used by unittest
|
|
|
|
return distutils.tests.test_suite()
|
|
|
|
|
|
|
|
|
2021-09-19 09:27:33 -03:00
|
|
|
def tearDownModule():
|
|
|
|
support.reap_children()
|
|
|
|
|
2022-05-05 20:22:32 -03:00
|
|
|
if support.check_sanitizer(address=True):
|
|
|
|
raise unittest.SkipTest("Exposes ASAN flakiness in GitHub CI")
|
2021-09-19 09:27:33 -03:00
|
|
|
|
2004-06-15 12:49:46 -03:00
|
|
|
if __name__ == "__main__":
|
2021-09-19 09:27:33 -03:00
|
|
|
unittest.main()
|