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):