Remove PyYAML warning filter in import test.

The filter is obsolete now that PyYAML imports go through our compat layer.
This commit is contained in:
Matt Clay 2021-05-10 16:28:34 -07:00
parent bdffb59978
commit 7b0c4845d9
2 changed files with 2 additions and 5 deletions

View file

@ -0,0 +1,2 @@
minor_changes:
- ansible-test - Removed the warning filter for ``PyYAML`` in the ``import`` sanity test.

View file

@ -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: