diff --git a/changelogs/fragments/ansible-test-import-pyyaml-warning.yml b/changelogs/fragments/ansible-test-import-pyyaml-warning.yml new file mode 100644 index 00000000000..5acd22ee51a --- /dev/null +++ b/changelogs/fragments/ansible-test-import-pyyaml-warning.yml @@ -0,0 +1,2 @@ +minor_changes: + - ansible-test - Removed the warning filter for ``PyYAML`` in the ``import`` sanity test. diff --git a/test/lib/ansible_test/_data/sanity/import/importer.py b/test/lib/ansible_test/_data/sanity/import/importer.py index ac78283643f..b72bd2cae39 100755 --- a/test/lib/ansible_test/_data/sanity/import/importer.py +++ b/test/lib/ansible_test/_data/sanity/import/importer.py @@ -539,11 +539,6 @@ def main(): r"The distutils package is deprecated and slated for removal in Python 3\.12\. .*", ) - warnings.filterwarnings( - "ignore", - "The _yaml extension module is now located at yaml._yaml and its location is subject to change. To use the " - "LibYAML-based parser and emitter, import from `yaml`: `from yaml import CLoader as Loader, CDumper as Dumper`.") - try: yield finally: