Skip to content

Commit 0f86c59

Browse files
committed
revert conftest.py
1 parent c21d3ab commit 0f86c59

1 file changed

Lines changed: 0 additions & 14 deletions

File tree

tests/conftest.py

Lines changed: 0 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import csv
22
import os
33
import shutil
4-
import sys
54
from pathlib import Path
65

76
import fsspec
@@ -14,19 +13,6 @@
1413
settings.load_profile("default")
1514

1615

17-
# Make the repo root importable from `multiprocessing` spawn children so that
18-
# tests using ProcessPoolExecutor (e.g. test_process_single_position with
19-
# use_threads=False) can unpickle helpers like `tests.ngff.test_ngff_utils.
20-
# dummy_transform`. pytest's `--import-mode=importlib` only manipulates the
21-
# parent process's sys.path, not the env that spawn children inherit.
22-
_REPO_ROOT = Path(__file__).resolve().parent.parent
23-
os.environ["PYTHONPATH"] = os.pathsep.join(
24-
[str(_REPO_ROOT)] + ([os.environ["PYTHONPATH"]] if os.environ.get("PYTHONPATH") else [])
25-
)
26-
if str(_REPO_ROOT) not in sys.path:
27-
sys.path.insert(0, str(_REPO_ROOT))
28-
29-
3016
@pytest.fixture
3117
def rng():
3218
return np.random.default_rng(42)

0 commit comments

Comments
 (0)