diff --git a/tests/unit/test_unit_metobs.py b/tests/unit/test_unit_metobs.py index d0d67e69..101e49fa 100644 --- a/tests/unit/test_unit_metobs.py +++ b/tests/unit/test_unit_metobs.py @@ -394,7 +394,7 @@ def test_unit_baselevel_get_url( """ level = BaseLevel() - if isinstance(expected_result, str): + if type(expected_result) != str: # noqa: E721 with pytest.raises(expected_result): level._get_url(data, key, parameters, data_type) return None