diff options
author | Victor Stinner <vstinner@python.org> | 2022-11-03 19:27:27 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-11-03 19:27:27 +0100 |
commit | 0faa0ba240e815614e5a2900e48007acac41b214 (patch) | |
tree | 20b8346df4331716aba051d6e05e039318176ba3 /Lib/test/test_distutils.py | |
parent | b07f546ea3a574bc3016fb023c157c65a47f4849 (diff) | |
download | cpython-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_distutils.py')
-rw-r--r-- | Lib/test/test_distutils.py | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/Lib/test/test_distutils.py b/Lib/test/test_distutils.py deleted file mode 100644 index 28320fb5c0b..00000000000 --- a/Lib/test/test_distutils.py +++ /dev/null @@ -1,30 +0,0 @@ -"""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. -""" - -import unittest -from test import support -from test.support import warnings_helper - -with warnings_helper.check_warnings( - ("The distutils package is deprecated", DeprecationWarning), quiet=True): - - import distutils.tests - - -def load_tests(*_): - # used by unittest - return distutils.tests.test_suite() - - -def tearDownModule(): - support.reap_children() - -if support.check_sanitizer(address=True): - raise unittest.SkipTest("Exposes ASAN flakiness in GitHub CI") - -if __name__ == "__main__": - unittest.main() |