- Disable tests that uses pexpect to avoid timeout error when running

in OBS.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest?expand=0&rev=118
This commit is contained in:
Daniel Garcia 2023-06-13 10:45:02 +00:00 committed by Git OBS Bridge
parent 80c53b2fc6
commit 8954b3dab0
2 changed files with 9 additions and 1 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Jun 13 10:35:00 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
- Disable tests that uses pexpect to avoid timeout error when running
in OBS.
-------------------------------------------------------------------
Thu May 4 23:26:11 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -108,7 +108,9 @@ sed -i '/pytest.mark.xfail(reason="#10042")/d' testing/test_debugging.py
%if %{with test}
# Disable broken tests with latest setuptools, gh#pytest-dev/pytest#10815
donttest="test_cmdline_python_namespace_package or test_syspath_prepend_with_namespace_packages"
%pytest -n auto -k "not ($donttest)"
# Don't run pexpect tests to avoid timeout error in OBS when running
# in quemu
%pytest -n auto -m "not uses_pexpect" -k "not ($donttest)"
%endif
%if ! %{with test}