From d307635c38aec5a95ced0c6d182821a650019f16 Mon Sep 17 00:00:00 2001 From: Rafael Guterres Jeffman Date: Mon, 10 Nov 2025 14:42:32 -0300 Subject: [PATCH] pytest: update to work with recent Python With Python 3.14, the required pytest version stopped working due to breaking changes in AST. This patch changes the test tool versions to the most recent one, by requiring only the minimal version, but not setting a specific one. Recent pytest version also requires that the search path for Python modules is defined. Signed-off-by: Rafael Guterres Jeffman --- pytest.ini | 1 + requirements-tests.txt | 8 ++++---- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/pytest.ini b/pytest.ini index d9707737..f325221a 100644 --- a/pytest.ini +++ b/pytest.ini @@ -4,3 +4,4 @@ junit_family = xunit1 markers= source_order: mark test as order bound playbook: playbook tests +pythonpath = tests diff --git a/requirements-tests.txt b/requirements-tests.txt index e6f74d64..052ba720 100644 --- a/requirements-tests.txt +++ b/requirements-tests.txt @@ -1,8 +1,8 @@ -r requirements.txt -pytest==7.1.3 -pytest-sourceorder==0.6.0 +pytest +pytest-sourceorder pytest-split>=0.8.0 pytest-custom_exit_code>=0.3.0 -pytest-testinfra==6.8.0 -pytest-randomly==3.12.0 +pytest-testinfra +pytest-randomly pyyaml>=3