Skip to content

Commit

Permalink
Merge pull request #8468 from OpenMined/rasswanth/tunshell-debugging
Browse files Browse the repository at this point in the history
Added tunshell debugging
  • Loading branch information
rasswanth-s authored Feb 8, 2024
2 parents f3d9d07 + 331395d commit 6395353
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions packages/syft/tests/conftest.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# stdlib
import json
import os
from pathlib import Path
from unittest import mock

Expand Down Expand Up @@ -46,6 +47,14 @@ def remove_file(filepath: Path):
filepath.unlink(missing_ok=True)


# Pytest hook to set the number of workers for xdist
def pytest_xdist_auto_num_workers(config):
num = config.option.numprocesses
if num == "auto" or num == "logical":
return os.cpu_count()
return None


@pytest.fixture(autouse=True)
def protocol_file():
random_name = sy.UID().to_string()
Expand Down

0 comments on commit 6395353

Please sign in to comment.