aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/Lib/test/test_check_c_globals.py
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2022-11-03 19:27:27 +0100
committerGitHub <noreply@github.com>2022-11-03 19:27:27 +0100
commit0faa0ba240e815614e5a2900e48007acac41b214 (patch)
tree20b8346df4331716aba051d6e05e039318176ba3 /Lib/test/test_check_c_globals.py
parentb07f546ea3a574bc3016fb023c157c65a47f4849 (diff)
downloadcpython-0faa0ba240e815614e5a2900e48007acac41b214.tar.gz
cpython-0faa0ba240e815614e5a2900e48007acac41b214.zip
gh-92584: Remove the distutils package (#99061)
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
Diffstat (limited to 'Lib/test/test_check_c_globals.py')
-rw-r--r--Lib/test/test_check_c_globals.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/Lib/test/test_check_c_globals.py b/Lib/test/test_check_c_globals.py
index 898807a5e69..670be52422f 100644
--- a/Lib/test/test_check_c_globals.py
+++ b/Lib/test/test_check_c_globals.py
@@ -2,6 +2,11 @@ import unittest
import test.test_tools
from test.support.warnings_helper import save_restore_warnings_filters
+
+# TODO: gh-92584: c-analyzer uses distutils which was removed in Python 3.12
+raise unittest.SkipTest("distutils has been removed in Python 3.12")
+
+
test.test_tools.skip_if_missing('c-analyzer')
with test.test_tools.imports_under_tool('c-analyzer'):
# gh-95349: Save/restore warnings filters to leave them unchanged.