Skip to content

Commit 0ff91aa

Browse files
committed
ci: disable pytest plugin autoloading for cibuildwheel tests
To fix "ValueError: Plugin already registered ..." errors.
1 parent 696de03 commit 0ff91aa

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pyproject.toml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ build = ["cp39-manylinux_x86_64", "cp310-manylinux_x86_64", "cp311-manylinux_x86
1515
build-verbosity = 1
1616
manylinux-x86_64-image = "manylinux_2_28"
1717
test-requires = "pytest"
18-
test-command = "pytest {package}/tests"
18+
test-command = "PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 pytest {package}/tests"
1919

2020
[tool.cibuildwheel.linux]
2121
before-all = "{package}/.github/buildlib"

0 commit comments

Comments
 (0)