From fb2137626393e1f9e510376bb82bd59b41f01ab9 Mon Sep 17 00:00:00 2001 From: mkosiarc Date: Tue, 6 Aug 2024 12:14:19 +0200 Subject: [PATCH] Freeze pytest version Newer versions of pytest cause issues for flexmock, causing failures in tests CI such as: tests/utils/test_yaml.py:11: in from flexmock import flexmock /usr/lib/python3.10/site-packages/flexmock/__init__.py:2: in from flexmock import _integrations # pylint: disable=unused-import /usr/lib/python3.10/site-packages/flexmock/_integrations.py:101: in saved_pytest = runner.call_runtest_hook E AttributeError: module '_pytest.runner' has no attribute 'call_runtest_hook' Signed-off-by: mkosiarc --- tests/requirements.txt | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/requirements.txt b/tests/requirements.txt index 23f3348a..231935c1 100644 --- a/tests/requirements.txt +++ b/tests/requirements.txt @@ -1,6 +1,6 @@ flexmock>=0.11.0 urllib3<1.26 -pytest>=4.1.0 +pytest==7.0.1 pytest-cov pytest-html flake8