test_distutils.py 696 B

123456789101112131415161718192021222324252627282930
  1. """Tests for distutils.
  2. The tests for distutils are defined in the distutils.tests package;
  3. the test_suite() function there returns a test suite that's ready to
  4. be run.
  5. """
  6. import unittest
  7. from test import support
  8. from test.support import warnings_helper
  9. with warnings_helper.check_warnings(
  10. ("The distutils package is deprecated", DeprecationWarning), quiet=True):
  11. import distutils.tests
  12. def load_tests(*_):
  13. # used by unittest
  14. return distutils.tests.test_suite()
  15. def tearDownModule():
  16. support.reap_children()
  17. if support.check_sanitizer(address=True):
  18. raise unittest.SkipTest("Exposes ASAN flakiness in GitHub CI")
  19. if __name__ == "__main__":
  20. unittest.main()