Skip to content

Commit 80aaade

Browse files
committed
Fix test_python_plugins.py when global is legacy grpc
1 parent 27ae16c commit 80aaade

File tree

1 file changed

+6
-8
lines changed

1 file changed

+6
-8
lines changed

tests/test_python_plugins.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@
2020
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
2121
# SOFTWARE.
2222

23-
import os
2423
from pathlib import Path
2524
import platform
2625

@@ -37,6 +36,7 @@
3736
PinSpecification,
3837
SpecificationProperties,
3938
)
39+
from ansys.dpf.core.server_factory import CommunicationProtocols
4040
import conftest
4141
from conftest import (
4242
SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_4_0,
@@ -46,16 +46,14 @@
4646

4747
if not SERVERS_VERSION_GREATER_THAN_OR_EQUAL_TO_4_0:
4848
pytest.skip("Requires server version higher than 4.0", allow_module_level=True)
49-
# if platform.python_version().startswith("3.7"):
50-
# pytest.skip(
51-
# "Known failures in the GitHub pipelines for 3.7",
52-
# allow_module_level=True
53-
# )
49+
5450
if platform.system() == "Linux":
5551
pytest.skip("Known failures for the Ubuntu-latest GitHub pipelines", allow_module_level=True)
5652

57-
update_virtual_environment_for_custom_operators(restore_original=True)
58-
update_virtual_environment_for_custom_operators()
53+
# Updating the dpf-site.zip of a DPF Server is only available when InProcess.
54+
if dpf.SERVER.config.protocol == CommunicationProtocols.InProcess:
55+
update_virtual_environment_for_custom_operators(restore_original=True)
56+
update_virtual_environment_for_custom_operators()
5957

6058

6159
@pytest.fixture(scope="module")

0 commit comments

Comments
 (0)