mirror of
https://github.com/ansible-collections/community.general.git
synced 2025-06-29 19:50:25 -07:00
Python3 fixes
This commit is contained in:
parent
a954220957
commit
e78c5f925b
6 changed files with 22 additions and 11 deletions
|
@ -57,7 +57,7 @@ class TestErrors(unittest.TestCase):
|
|||
m = mock_open()
|
||||
m.return_value.readlines.return_value = ['this is line 1\n']
|
||||
|
||||
with patch('__builtin__.open', m):
|
||||
with patch('{0}.open'.format(BUILTINS), m):
|
||||
# this line will be found in the file
|
||||
self.obj._data_source = 'foo.yml'
|
||||
self.obj._line_number = 1
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue