Skip to content

Commit ca17885

Browse files
committed
Bump pytest max version to 8
We have a constraint that limits the maximum supported version of pytest to the current major version, under the assumption that a new major version release may break backwards compatibility. Now that pytest 7 has been tested and is known to work with pytest-localserver, we can relax the constraint to mark it as supported.
1 parent fae08fe commit ca17885

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

tox.ini

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,13 @@ downloadcache = {toxworkdir}/_download
99
[testenv]
1010
description = run test suite under {basepython}
1111
deps =
12-
pytest >=4, <7; python_version<'3.10'
13-
pytest >=6.2.5, <7; python_version>='3.10'
14-
# pytest-cov >=2, <3
12+
# Future major versions of pytest may break backwards compatibility in a way
13+
# that prevents them from working with this package, so we prevent testing
14+
# with major versions that haven't been released yet. Each time a new major
15+
# version of pytest is released, once it's confirmed to work with this
16+
# package, we should bump this limit to the next major version.
17+
pytest >=4, <8; python_version<'3.10'
18+
pytest >=6.2.5, <8; python_version>='3.10'
1519
pytest-cov
1620
six
1721
requests

0 commit comments

Comments
 (0)