From 0c41b7b21e30110997dc371132c220f76574015d Mon Sep 17 00:00:00 2001 From: "Jason R. Coombs" Date: Mon, 15 Apr 2024 21:11:29 -0400 Subject: [PATCH] Disable forked and unpin pytest. Ref #511. Closes #680. --- cheroot/test/test_server.py | 2 +- requirements/tests.in | 14 ++++++++------ 2 files changed, 9 insertions(+), 7 deletions(-) diff --git a/cheroot/test/test_server.py b/cheroot/test/test_server.py index e2e5f788c7..c5d2aba265 100644 --- a/cheroot/test/test_server.py +++ b/cheroot/test/test_server.py @@ -400,7 +400,7 @@ def test_reuse_port(http_server, ip_addr, mocker): assert spy.spy_exception is None -ISSUE511 = IS_MACOS +ISSUE511 = True if not IS_WINDOWS and not ISSUE511: diff --git a/requirements/tests.in b/requirements/tests.in index 7192fdff71..e96c41868c 100644 --- a/requirements/tests.in +++ b/requirements/tests.in @@ -34,18 +34,20 @@ pypytools pytest-clarity pytest-cov==2.12.0 -pytest-forked>=1.2.0; sys_platform != "win32" +# pytest-forked is currently incompatible with pytest 7 +# Refs: +# * https://github.com/cherrypy/cheroot/issues/511 +# * https://github.com/pytest-dev/pytest-forked/issues/67 +# pytest-forked>=1.2.0; sys_platform != "win32" pytest-mock>=1.11.0 pytest-rerunfailures pytest-sugar>=0.9.3 pytest-watch==4.2.0 pytest-xdist>=1.28.0 -# pytest-forked is currently incompatible with pytest 7 -# Refs: -# * https://github.com/cherrypy/cheroot/issues/511 -# * https://github.com/pytest-dev/pytest-forked/issues/67 -pytest >= 4.6.6, < 7 +# pytest 7.2 introduces deprecations triggered by pytest-cov +# * https://github.com/cherrypy/cheroot/issues/682 +pytest >= 7, <7.2 # HTTP over UNIX socket requests-unixsocket