UXInteract / task_034 /tests /_offline /sitecustomize.py
DojiSum's picture
Publish the current 141-task UXInteract release
ef987bb verified
Raw History Blame Contribute Delete
314 Bytes
"""Deterministic, network-disabled Python test runtime."""
import random
import socket
random.seed(0)
def _blocked(*_args, **_kwargs):
raise RuntimeError("network access is disabled by the verifier")
socket.create_connection = _blocked
socket.socket.connect = _blocked
socket.socket.connect_ex = _blocked