Fix lint in unit tests re: py3-first and py2 compat
Change-Id: Id4a78f4f98b3fc93c42018fc9616b2482a4ff80a
This commit is contained in:
parent
63f9ac2c7c
commit
8939e57d05
|
@ -131,7 +131,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