forked from pool/python-pylint
- Add new patch to fix failing tests with pytest 8, pytest-8.patch
gh#pylint-dev/pylint#9576 - Skip some tests that still are failing with pytest 8, gh#pylint-dev/pylint#9545 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pylint?expand=0&rev=159
This commit is contained in:
@@ -27,6 +27,8 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/pycqa/pylint
|
||||
# Tests are no longer packaged in the PyPI sdist, use GitHub archive
|
||||
Source: https://github.com/PyCQA/pylint/archive/refs/tags/v%{version}.tar.gz#/pylint-%{version}-gh.tar.gz
|
||||
# PATCH-FIX-UPSTREAM pytest-8.patch gh#pylint-dev/pylint#9576
|
||||
Patch1: pytest-8.patch
|
||||
BuildRequires: %{python_module base >= 3.7.2}
|
||||
BuildRequires: %{python_module pip}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@@ -104,7 +106,12 @@ done
|
||||
%check
|
||||
export LC_ALL="en_US.UTF-8"
|
||||
# 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"
|
||||
donttest="test_linter_with_unpickleable_plugins_is_pickleable"
|
||||
# Fails with pytest-8 gh#pylint-dev/pylint#9545
|
||||
donttest+=" or recursion_error_3159"
|
||||
# Fails with python 3.12
|
||||
donttest+=" or test_functional_relation_extraction"
|
||||
%pytest -n auto --ignore tests/benchmark --reruns 5 -rsfER -k "not ($donttest)"
|
||||
%endif
|
||||
|
||||
%post
|
||||
|
Reference in New Issue
Block a user