Skip to content

Commit 568196e

Browse files
authored
Pin pytest version installed by tox (#1265)
* Pin `pytest` version installed by `tox` Quick fix for #1264 - not linking to close that issue as ideally we should in the longer term fix the tests to work with Pytest v8 and remove the pins. * Fix pytest version specifier
1 parent fac71f8 commit 568196e

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

tox.ini

+6-2
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,9 @@ passenv =
2727
usedevelop = false
2828
deps =
2929
-r{toxinidir}/requirements/base.txt
30-
pytest
30+
; Pin pytest version as some tests use features deprecated in v8
31+
; See https://github.com/UCL/TLOmodel/issues/1264
32+
pytest==7.4.4
3133
pytest-cov
3234
commands =
3335
{posargs:pytest --cov --cov-report=term-missing -vv tests}
@@ -38,7 +40,9 @@ deps =
3840
pandas15: pandas==1.5.3
3941
pandas20: pandas==2.0.0
4042
pandas21: pandas==2.1.0
41-
pytest
43+
; Pin pytest version as some tests use features deprecated in v8
44+
; See https://github.com/UCL/TLOmodel/issues/1264
45+
pytest==7.4.4
4246
pytest-cov
4347

4448
[testenv:spell]

0 commit comments

Comments
 (0)