Skip to content

Commit 7a97287

Browse files
authored
Reduce likelihood of test hangs on macOS (#536)
Fixes #535
1 parent 6440f7a commit 7a97287

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

pyproject.toml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ requires = [
135135
"setuptools>=61.0.0",
136136
"wheel",
137137
"setuptools_scm[toml]>=7.0",
138-
"check-manifest"
138+
"check-manifest",
139139
]
140140

141141
[tool.pixi.project]
@@ -171,8 +171,10 @@ rust = "*"
171171
# Define commands to run within the test environments
172172
[tool.pixi.feature.test.tasks]
173173
run-mypy = { cmd = "mypy virtualizarr" }
174-
run-tests = { cmd = "pytest -n auto --run-network-tests --verbose" }
175-
run-tests-no-network = { cmd = "pytest -n auto" }
174+
# Using '--dist loadscope' (rather than default of '--dist load' when '-n auto'
175+
# is used), reduces test hangs that appear to be macOS-related.
176+
run-tests = { cmd = "pytest -n auto --dist loadscope --run-network-tests --verbose" }
177+
run-tests-no-network = { cmd = "pytest -n auto --verbose" }
176178
run-tests-cov = { cmd = "pytest -n auto --run-network-tests --verbose --cov=term-missing" }
177179
run-tests-xml-cov = { cmd = "pytest -n auto --run-network-tests --verbose --cov-report=xml" }
178180
run-tests-html-cov = { cmd = "pytest -n auto --run-network-tests --verbose --cov-report=html" }
@@ -226,8 +228,6 @@ module = [
226228
]
227229
ignore_missing_imports = true
228230

229-
230-
231231
[tool.ruff]
232232
# Same as Black.
233233
line-length = 88

0 commit comments

Comments
 (0)