From b63b18b80789f86d3cf3ef5db1ab461d68fbb845 Mon Sep 17 00:00:00 2001 From: Yaakov Selkowitz Date: Wed, 27 Dec 2023 14:44:27 -0500 Subject: [PATCH] Update pytest parameters for 2.5.0 Previously listed in setup.cfg, they are now in pytest.ini. --- rpmlint.spec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/rpmlint.spec b/rpmlint.spec index 043d82c..c8fb0a1 100644 --- a/rpmlint.spec +++ b/rpmlint.spec @@ -28,7 +28,6 @@ BuildRequires: devscripts-checkbashisms BuildRequires: hunspell-cs BuildRequires: hunspell-en-US BuildRequires: python3dist(pytest) -BuildRequires: python3dist(pytest-cov) %if ! 0%{?rhel} BuildRequires: python3dist(pytest-xdist) %endif @@ -65,7 +64,7 @@ sed -i -e '/ErlangCheck/d' rpmlint/configdefaults.toml test/test_lint.py # Don't lint the code or measure coverage in %%check # On RHEL, also avoid xdist by disabling parallelism -sed -i -e 's/ --cov=rpmlint//' -e 's/ --flake8//' %{?rhel:-e 's/ -n auto//'} setup.cfg +sed -i -e '/^ *--cov=rpmlint$/d' %{?rhel:-e '/^ *-n auto$/d'} pytest.ini # Avoid warnings about pytest.mark.no_cover marker sed -i '/^@pytest.mark.no_cover/d' test/test_lint.py