ansible-test - Fail sanity test on distutils use.

pull/77074/head
Matt Clay 3 years ago
parent c1a271c792
commit d3d5244912

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - Importing ``distutils`` now results in an error.

@ -541,15 +541,6 @@ def main():
r"_Ansible.*Loader\.exec_module\(\) not found; falling back to load_module\(\)",
)
# Temporary solution until there is a vendored copy of distutils.version in module_utils.
# Some of our dependencies such as packaging.tags also import distutils, which we have no control over
# The warning text is: The distutils package is deprecated and slated for removal in Python 3.12.
# Use setuptools or check PEP 632 for potential alternatives
warnings.filterwarnings(
"ignore",
r"The distutils package is deprecated and slated for removal in Python 3\.12\. .*",
)
try:
yield
finally:

Loading…
Cancel
Save