MCPcopy
hub / github.com/redis/redis-py / test_unix_socket_connection_failure

Function test_unix_socket_connection_failure

tests/test_connection.py:702–706  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

700 reason="Unix domain sockets not supported on this platform",
701)
702def test_unix_socket_connection_failure():
703 exp_err = "Error 2 connecting to unix:///tmp/a.sock. No such file or directory."
704 with pytest.raises(ConnectionError, match=exp_err):
705 redis = Redis(unix_socket_path="unix:///tmp/a.sock")
706 redis.set("a", "b")
707
708
709@pytest.mark.fixed_client

Callers

nothing calls this directly

Calls 2

RedisClass · 0.90
setMethod · 0.45

Tested by

no test coverage detected