Skip to content

Commit 5cab03f

Browse files
authored
Run integration tests with newest pytest (#2518)
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.
1 parent 63e2f77 commit 5cab03f

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

test-requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
pip # always use newest pip
22
mock ; python_version<'3.3'
3-
pytest<7
3+
pytest
44
pytest-cov==2.8.1
55
pytest-forked<=1.4.0
66
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

tox.ini

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -202,6 +202,10 @@ deps =
202202

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

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

355363
# GQL
356364
gql: gql[all]

0 commit comments

Comments
 (0)