Skip to content

Commit

Permalink
Run integration tests with newest pytest (#2518)
Browse files Browse the repository at this point in the history
Our integrations tests run with the latest pytest out of the box. The common/gevent tests have issues with it (it doesn't play nicely with pytest-forked), so those will have to stay on pytest<7 for a bit longer.
  • Loading branch information
sentrivana committed Nov 21, 2023
1 parent 63e2f77 commit 5cab03f
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion test-requirements.txt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
pip # always use newest pip
mock ; python_version<'3.3'
pytest<7
pytest
pytest-cov==2.8.1
pytest-forked<=1.4.0
pytest-localserver==0.5.1 # TODO(py3): 0.6.0 drops 2.7 support: https://github.com/pytest-dev/pytest-localserver/releases/tag/v0.6.0
Expand Down
8 changes: 8 additions & 0 deletions tox.ini
Original file line number Diff line number Diff line change
Expand Up @@ -202,6 +202,10 @@ deps =

# Common
{py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-common: pytest-asyncio
# See https://github.com/pytest-dev/pytest/issues/9621
# and https://github.com/pytest-dev/pytest-forked/issues/67
# for justification of the upper bound on pytest
{py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-common: pytest<7.0.0

# AIOHTTP
aiohttp-v3.4: aiohttp>=3.4.0,<3.5.0
Expand Down Expand Up @@ -351,6 +355,10 @@ deps =
# for justification why greenlet is pinned here
py3.5-gevent: greenlet==0.4.17
{py2.7,py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-gevent: gevent>=22.10.0, <22.11.0
# See https://github.com/pytest-dev/pytest/issues/9621
# and https://github.com/pytest-dev/pytest-forked/issues/67
# for justification of the upper bound on pytest
{py3.6,py3.7,py3.8,py3.9,py3.10,py3.11,py3.12}-gevent: pytest<7.0.0

# GQL
gql: gql[all]
Expand Down

0 comments on commit 5cab03f

Please sign in to comment.