From de9a3bda2cfaace7e3d25b0c4774eefdd9514687 Mon Sep 17 00:00:00 2001 From: Matt Clay Date: Thu, 17 Feb 2022 16:38:05 -0800 Subject: [PATCH] Fix warning in unit tests for _yaml import. --- test/units/parsing/yaml/test_loader.py | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/test/units/parsing/yaml/test_loader.py b/test/units/parsing/yaml/test_loader.py index 7a77241e9ec..cfd9ed54e61 100644 --- a/test/units/parsing/yaml/test_loader.py +++ b/test/units/parsing/yaml/test_loader.py @@ -35,12 +35,8 @@ from ansible.parsing.yaml.dumper import AnsibleDumper from units.mock.yaml_helper import YamlTestUtils from units.mock.vault_helper import TextVaultSecret -try: - from _yaml import ParserError - from _yaml import ScannerError -except ImportError: - from yaml.parser import ParserError - from yaml.scanner import ScannerError +from yaml.parser import ParserError +from yaml.scanner import ScannerError class NameStringIO(StringIO):