diff --git a/tests/test_connector.py b/tests/test_connector.py index 79bfaedb76c..148b4cd742f 100644 --- a/tests/test_connector.py +++ b/tests/test_connector.py @@ -2188,7 +2188,7 @@ def test_expired_ttl(self, monkeypatch: pytest.MonkeyPatch) -> None: monkeypatch.setattr("aiohttp.connector.monotonic", lambda: 3) assert dns_cache_table.expired("localhost") - def test_never_expire(self) -> None: + def test_never_expire(self, monkeypatch: pytest.MonkeyPatch) -> None: dns_cache_table = _DNSCacheTable(ttl=None) monkeypatch.setattr("aiohttp.connector.monotonic", lambda: 1) dns_cache_table.add("localhost", ["127.0.0.1"])