mirror of
https://github.com/ansible-collections/community.general.git
synced 2024-09-14 20:13:21 +02:00
Updated the test_data_loader to use six.builtins vs __builtins__
This commit is contained in:
parent
77cd7a6e89
commit
1e139fe08f
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
|||
from __future__ import (absolute_import, division, print_function)
|
||||
__metaclass__ = type
|
||||
|
||||
from six.moves import builtins
|
||||
from yaml.scanner import ScannerError
|
||||
|
||||
from ansible.compat.tests import unittest
|
||||
|
@ -79,6 +80,6 @@ class TestDataLoaderWithVault(unittest.TestCase):
|
|||
3135306561356164310a343937653834643433343734653137383339323330626437313562306630
|
||||
3035
|
||||
"""
|
||||
with patch('__builtin__.open', mock_open(read_data=vaulted_data)):
|
||||
with patch('builtins.open', mock_open(read_data=vaulted_data)):
|
||||
output = self._loader.load_from_file('dummy_vault.txt')
|
||||
self.assertEqual(output, dict(foo='bar'))
|
||||
|
|
Loading…
Reference in a new issue