Skip to content

Commit 3638714

Browse files
Look like we need to set config.option.threads
1 parent 69f0c7e commit 3638714

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

tests/conftest.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@ def pytest_configure(config: pytest.Config) -> None:
2121
Tests must opt-in via @pytest.mark.freethreaded(threads=N, iterations=M).
2222
"""
2323
if sys.version_info >= (3, 13) and hasattr(config.option, "threads"):
24+
config.option.threads = 2
2425
config.option.iterations = 1
2526

2627

0 commit comments

Comments
 (0)