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}