mirror of
https://github.com/python/cpython.git
synced 2025-10-22 17:33:55 +00:00

Remove the distutils package. It was deprecated in Python 3.10 by PEP 632 "Deprecate distutils module". For projects still using distutils and cannot be updated to something else, the setuptools project can be installed: it still provides distutils. * Remove Lib/distutils/ directory * Remove test_distutils * Remove references to distutils * Skip test_check_c_globals and test_peg_generator since they use distutils
18 lines
629 B
Python
18 lines
629 B
Python
import os.path
|
|
import unittest
|
|
from test import support
|
|
from test.support import load_package_tests
|
|
|
|
# TODO: gh-92584: peg_generator uses distutils which was removed in Python 3.12
|
|
raise unittest.SkipTest("distutils has been removed in Python 3.12")
|
|
|
|
|
|
if support.check_sanitizer(address=True, memory=True):
|
|
# bpo-46633: Skip the test because it is too slow when Python is built
|
|
# with ASAN/MSAN: between 5 and 20 minutes on GitHub Actions.
|
|
raise unittest.SkipTest("test too slow on ASAN/MSAN build")
|
|
|
|
|
|
# Load all tests in package
|
|
def load_tests(*args):
|
|
return load_package_tests(os.path.dirname(__file__), *args)
|