Skip to content

Commit 2773b13

Browse files
committed
Reformat and add --allow-unix-socket to pytest config
Seems like some underlying change in multiprocessing or some related module in Python 3.14 now means our test suite uses unix sockets. We have a pytest plugin installed that blocks sockets by default to avoid mistakenly adding tests that rely on the Internet. Local unix sockets are totally fine, of course. I've added them to the allowlist.
1 parent e384d10 commit 2773b13

File tree

1 file changed

+9
-1
lines changed

1 file changed

+9
-1
lines changed

pyproject.toml

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,7 +300,15 @@ follow_imports = "skip"
300300
#
301301

302302
[tool.pytest.ini_options]
303-
addopts = "--ignore src/pip/_vendor --ignore tests/tests_cache -r aR --color=yes --disable-socket --allow-hosts=localhost"
303+
addopts = [
304+
"-r=aR",
305+
"--color=yes",
306+
"--ignore=src/pip/_vendor",
307+
"--ignore=tests/tests_cache",
308+
"--disable-socket",
309+
"--allow-unix-socket",
310+
"--allow-hosts=localhost",
311+
]
304312
xfail_strict = true
305313
markers = [
306314
"network: tests that need network",

0 commit comments

Comments
 (0)