From 9c470ab9a211a1e5aca0ea9962c90a8e4b3b38f5 Mon Sep 17 00:00:00 2001 From: "paul.profizi" Date: Thu, 15 Feb 2024 10:53:57 +0100 Subject: [PATCH] Try skip problematic doctest lines Signed-off-by: paul.profizi --- src/ansys/dpf/core/server_factory.py | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ansys/dpf/core/server_factory.py b/src/ansys/dpf/core/server_factory.py index b43a5e259d..9ea482b23d 100644 --- a/src/ansys/dpf/core/server_factory.py +++ b/src/ansys/dpf/core/server_factory.py @@ -235,9 +235,9 @@ class ServerConfig: ... protocol=dpf.server_factory.CommunicationProtocols.gRPC, legacy=False) >>> legacy_grpc_config = dpf.ServerConfig( ... protocol=dpf.server_factory.CommunicationProtocols.gRPC, legacy=True) - >>> in_process_server = dpf.start_local_server(config=in_process_config, as_global=False) - >>> grpc_server = dpf.start_local_server(config=grpc_config, as_global=False) - >>> legacy_grpc_server = dpf.start_local_server(config=legacy_grpc_config, as_global=False) + >>> in_process_server = dpf.start_local_server(config=in_process_config, as_global=False) # doctest: +SKIP + >>> grpc_server = dpf.start_local_server(config=grpc_config, as_global=False) # doctest: +SKIP + >>> legacy_grpc_server = dpf.start_local_server(config=legacy_grpc_config, as_global=False) # doctest: +SKIP Use the environment variable to set the default server configuration. @@ -358,6 +358,9 @@ class AvailableServerConfigs: >>> in_process_config = dpf.AvailableServerConfigs.InProcessServer >>> grpc_config = dpf.AvailableServerConfigs.GrpcServer >>> legacy_grpc_config = dpf.AvailableServerConfigs.LegacyGrpcServer + >>> in_process_server = dpf.start_local_server(config=in_process_config, as_global=False) # doctest: +SKIP + >>> grpc_server = dpf.start_local_server(config=grpc_config, as_global=False) # doctest: +SKIP + >>> legacy_grpc_server = dpf.start_local_server(config=legacy_grpc_config, as_global=False) # doctest: +SKIP """