From 81a2e9be2b8181b2a64b1609a9579a1a4e7be2dae96ecd51df46318e424bbd4c Mon Sep 17 00:00:00 2001 From: Sebastian Wagner Date: Fri, 24 Nov 2023 13:04:27 +0000 Subject: [PATCH] - disable pytest's test name check https://github.com/ansible/ansible-compat/issues/340 OBS-URL: https://build.opensuse.org/package/show/systemsmanagement:ansible/python-ansible-compat?expand=0&rev=21 --- python-ansible-compat.changes | 6 ++++++ python-ansible-compat.spec | 2 ++ 2 files changed, 8 insertions(+) diff --git a/python-ansible-compat.changes b/python-ansible-compat.changes index e6d8096..022b9e7 100644 --- a/python-ansible-compat.changes +++ b/python-ansible-compat.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Fri Nov 24 13:03:50 UTC 2023 - Sebastian Wagner + +- disable pytest's test name check + https://github.com/ansible/ansible-compat/issues/340 + ------------------------------------------------------------------- Wed Sep 6 15:25:15 UTC 2023 - Johannes Kastl diff --git a/python-ansible-compat.spec b/python-ansible-compat.spec index dc2089a..66205fd 100644 --- a/python-ansible-compat.spec +++ b/python-ansible-compat.spec @@ -87,6 +87,8 @@ IGNORED_CHECKS="${IGNORED_CHECKS} or test_scan_sys_path[isolatedF-scanT-raises_n IGNORED_CHECKS="${IGNORED_CHECKS} or test_scan_sys_path[isolatedT-scanF-raises_not_foundT]" IGNORED_CHECKS="${IGNORED_CHECKS} or test_scan_sys_path[isolatedT-scanT-raises_not_foundT]" IGNORED_CHECKS="${IGNORED_CHECKS} or test_upgrade_collection" +# Disable checks on test names: https://github.com/pytest-dev/pytest-plus#user-content-avoiding-problematic-test-identifiers https://github.com/ansible/ansible-compat/issues/340 +export PYTEST_CHECK_TEST_ID_REGEX=0 %pytest -k "not (${IGNORED_CHECKS})" %files %{python_files}