mirror of
https://github.com/hwchase17/langchain.git
synced 2026-06-09 18:50:33 +00:00
fix(langchain): activate mypy warn-unreachable (#34553)
Co-authored-by: Mason Daugherty <mason@langchain.dev>
This commit is contained in:
committed by
GitHub
parent
5dc8ba3c99
commit
fc417aaf17
@@ -64,7 +64,7 @@ def test_host_policy_validations() -> None:
|
||||
|
||||
|
||||
def test_host_policy_requires_resource_for_limits(monkeypatch: pytest.MonkeyPatch) -> None:
|
||||
monkeypatch.setattr(_execution, "resource", None, raising=False)
|
||||
monkeypatch.setattr(_execution, "_HAS_RESOURCE", False, raising=False)
|
||||
with pytest.raises(RuntimeError):
|
||||
HostExecutionPolicy(cpu_time_seconds=1)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user