14
0
forked from pool/python-pylint

Accepting request 1090184 from home:bnavigator:branches:devel:languages:python

- Update test setup: rerun flaky pyreverse tests

OBS-URL: https://build.opensuse.org/request/show/1090184
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=148
This commit is contained in:
2023-06-01 11:16:52 +00:00
committed by Git OBS Bridge
parent 17c61431f7
commit 2bfaab6a49
2 changed files with 8 additions and 2 deletions

View File

@@ -59,7 +59,7 @@ BuildRequires: %{python_module typing-extensions >= 3.10}
# /SECTION
# SECTION test deps
BuildRequires: %{python_module GitPython > 3}
BuildRequires: %{python_module pytest-benchmark}
BuildRequires: %{python_module pytest-rerunfailures}
BuildRequires: %{python_module pytest-timeout}
BuildRequires: %{python_module pytest-xdist}
BuildRequires: %{python_module pytest}
@@ -106,7 +106,8 @@ done
%if %{with tests}
%check
export LC_ALL="en_US.UTF-8"
%pytest %{?jobs:-n %jobs} --benchmark-disable -k "not test_linter_with_unpickleable_plugins_is_pickleable"
# reruns: tests/pyreverse is incredibly non-deterministic in failures
%pytest -n auto --ignore tests/benchmark --reruns 5 -rsfER -k "not test_linter_with_unpickleable_plugins_is_pickleable"
%endif
%post