mirror of
https://github.com/hwchase17/langchain.git
synced 2026-05-19 22:23:49 +00:00
Co-authored-by: Mason Daugherty <mason@langchain.dev> Co-authored-by: Sydney Runkle <54324534+sydney-runkle@users.noreply.github.com> Co-authored-by: Sydney Runkle <sydneymarierunkle@gmail.com>
10 lines
239 B
Python
10 lines
239 B
Python
import pytest
|
|
import pytest_socket
|
|
import requests
|
|
|
|
|
|
def test_socket_disabled() -> None:
|
|
"""This test should fail."""
|
|
with pytest.raises(pytest_socket.SocketBlockedError):
|
|
requests.get("https://www.example.com", timeout=1)
|