From e8d542407938607e3f8851f4b81fb51145ecd982 Mon Sep 17 00:00:00 2001 From: Ryan Beisner Date: Thu, 1 Nov 2018 22:18:10 -0500 Subject: [PATCH] Fix lint in unit tests re: py3-first and py2 compat Change-Id: If0e29a80aa678f777973be5e7ee882b1e38073b5 --- unit_tests/test_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unit_tests/test_utils.py b/unit_tests/test_utils.py index e8f62a3..cd06cfa 100644 --- a/unit_tests/test_utils.py +++ b/unit_tests/test_utils.py @@ -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):