diff --git a/tests/test_responses_optional_imports.py b/tests/test_responses_optional_imports.py index 44a98eef40..1e88f5efc9 100644 --- a/tests/test_responses_optional_imports.py +++ b/tests/test_responses_optional_imports.py @@ -13,9 +13,13 @@ def test_optional_imports_broken_installation(monkeypatch: pytest.MonkeyPatch) - def fake_import_module(name: str, package: str | None = None) -> Any: if name == "ujson": - raise ImportError("simulated binary/load failure for ujson") # pragma: no cover + raise ImportError( + "simulated binary/load failure for ujson" + ) # pragma: no cover if name == "orjson": - raise ImportError("simulated binary/load failure for orjson") # pragma: no cover + raise ImportError( + "simulated binary/load failure for orjson" + ) # pragma: no cover return real_import_module(name, package) monkeypatch.setattr(importlib, "import_module", fake_import_module)