Skip to content

Commit f90fbfa

Browse files
committed
Test free-threaded Python with pytest-run-parallel
1 parent ac7cb9e commit f90fbfa

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

test_requirements.txt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
hypothesis
12
pytest
23
pytest-cov
3-
hypothesis
4+
pytest-run-parallel

tox.ini

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ envlist = py37, py38, py39, py310, py311, py312, pypy, lint
33

44
[testenv]
55
deps= -r{toxinidir}/test_requirements.txt
6-
commands= python -bb -m pytest --cov brotlicffi {posargs} {toxinidir}/test/
6+
commands=
7+
python -bb -m pytest --cov --iterations=8 --parallel-threads=auto brotlicffi {posargs} {toxinidir}/test/
78

89
[testenv:pypy]
910
# temporarily disable coverage testing on PyPy due to performance problems

0 commit comments

Comments
 (0)