diff --git a/test/v2/parsing/test_general.py b/test/v2/parsing/test_general.py index 8afb75acf8..9373968cc8 100644 --- a/test/v2/parsing/test_general.py +++ b/test/v2/parsing/test_general.py @@ -21,7 +21,9 @@ from ansible.errors import AnsibleParserError import json -class MockFile(file): +from io import FileIO + +class MockFile(FileIO): def __init__(self, ds, method='json'): self.ds = ds