Python3 fixes

This commit is contained in:
Toshio Kuratomi 2014-10-21 01:24:09 -04:00
parent a954220957
commit e78c5f925b
6 changed files with 22 additions and 11 deletions

View file

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