From 7b0c4845d982559f74be81cf7ee2ba7a974aafae Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Mon, 10 May 2021 16:28:34 -0700 Subject: [PATCH] Remove PyYAML warning filter in import test. The filter is obsolete now that PyYAML imports go through our compat layer. --- changelogs/fragments/ansible-test-import-pyyaml-warning.yml | 2 ++ test/lib/ansible_test/_data/sanity/import/importer.py | 5 ----- 2 files changed, 2 insertions(+), 5 deletions(-) create mode 100644 changelogs/fragments/ansible-test-import-pyyaml-warning.yml 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: