diff --git a/tests/core/providers/test_ipc_provider.py b/tests/core/providers/test_ipc_provider.py index 26fb3c779e..aae89f48db 100644 --- a/tests/core/providers/test_ipc_provider.py +++ b/tests/core/providers/test_ipc_provider.py @@ -39,6 +39,12 @@ def test_ipc_no_path(): assert ipc.isConnected() is False +def test_ipc_tilda_in_path(): + expectedPath = str(pathlib.Path.home()) + '/foo' + assert IPCProvider('~/foo').ipc_path == expectedPath + assert IPCProvider(pathlib.Path('~/foo')).ipc_path == expectedPath + + @pytest.fixture def simple_ipc_server(jsonrpc_ipc_pipe_path): serv = socket.socket(socket.AF_UNIX)