File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import csv
22import os
33import shutil
4- import sys
54from pathlib import Path
65
76import fsspec
1413settings .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
3117def rng ():
3218 return np .random .default_rng (42 )
You can’t perform that action at this time.
0 commit comments