Accepting request 1092827 from devel:languages:python:pytest

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

OBS-URL: https://build.opensuse.org/request/show/1092827
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=76
This commit is contained in:
Dominique Leuenberger 2023-06-14 14:28:45 +00:00 committed by Git OBS Bridge
commit aeb912c618
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}