From 468f12a20a781c58c6acca48518d14bb4fdd93f6f93176cb7d85a4e5ffc06dc0 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 14 Dec 2021 18:15:48 +0000 Subject: [PATCH] Accepting request 940251 from home:pgajdos:python - fix tests, do not require pytest-runner OBS-URL: https://build.opensuse.org/request/show/940251 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-compat-patcher-core?expand=0&rev=7 --- python-compat-patcher-core.changes | 5 +++++ python-compat-patcher-core.spec | 6 ++++-- 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/python-compat-patcher-core.changes b/python-compat-patcher-core.changes index d164384..1c74e09 100644 --- a/python-compat-patcher-core.changes +++ b/python-compat-patcher-core.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon Dec 13 13:35:12 UTC 2021 - pgajdos@suse.com + +- fix tests, do not require pytest-runner + ------------------------------------------------------------------- Sat May 15 10:27:02 UTC 2021 - Ben Greiner diff --git a/python-compat-patcher-core.spec b/python-compat-patcher-core.spec index 62399a6..a9a24cf 100644 --- a/python-compat-patcher-core.spec +++ b/python-compat-patcher-core.spec @@ -36,8 +36,9 @@ BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module docutils} BuildRequires: %{python_module pytest-cov} -BuildRequires: %{python_module pytest-runner} +BuildRequires: %{python_module pytest} BuildRequires: %{python_module six} +BuildRequires: %{python_module tomli} BuildRequires: python3-pytest-cookies # /SECTION %python_subpackages @@ -61,7 +62,8 @@ rm pytest.ini %check # Cookiecutter is only available as python3 %python_expand [ %{_bindir}/$python -ef %{_bindir}/python3 ] || $python_ignore="--ignore tests/test_cookiecutter_recipe.py" -%pytest tests ${$python_ignore} +# _and_run_tests: use setup.py test +%pytest tests ${$python_ignore} -k 'not _and_run_tests' %files %{python_files} %doc AUTHORS CHANGELOG README.rst