From 8939e57d05db31971073df5b530d0164b9a56493 Mon Sep 17 00:00:00 2001 From: Ryan Beisner Date: Thu, 1 Nov 2018 22:18:40 -0500 Subject: [PATCH] Fix lint in unit tests re: py3-first and py2 compat Change-Id: Id4a78f4f98b3fc93c42018fc9616b2482a4ff80a --- 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 941ddb09..90db851e 100644 --- a/unit_tests/test_utils.py +++ b/unit_tests/test_utils.py @@ -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):