()
| 700 | reason="Unix domain sockets not supported on this platform", |
| 701 | ) |
| 702 | def 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 |