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