Fix lint in unit tests re: py3-first and py2 compat
Change-Id: If0e29a80aa678f777973be5e7ee882b1e38073b5
This commit is contained in:
parent
e9d7e291b7
commit
e8d5424079
|
@ -122,7 +122,7 @@ def patch_open():
|
|||
|
||||
Yields the mock for "open" and "file", respectively.'''
|
||||
mock_open = MagicMock(spec=open)
|
||||
mock_file = MagicMock(spec=file) # noqa
|
||||
mock_file = MagicMock(spec=file) # noqa - transitional py2 py3
|
||||
|
||||
@contextmanager
|
||||
def stub_open(*args, **kwargs):
|
||||
|
|
Loading…
Reference in New Issue