From d191c9f40b8c2a29f6949040095da469b114b09cf9b519461e6535e28520c05e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 17 Aug 2020 12:39:49 +0000 Subject: [PATCH] - Don't force pytest, when the easiest way is just to follow the flow and go with the unittest runner. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyshould?expand=0&rev=8 --- python-pyshould.changes | 6 ++++++ python-pyshould.spec | 8 ++++---- 2 files changed, 10 insertions(+), 4 deletions(-) diff --git a/python-pyshould.changes b/python-pyshould.changes index 5234b6d..70696a6 100644 --- a/python-pyshould.changes +++ b/python-pyshould.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Aug 17 12:38:29 UTC 2020 - Matej Cepl + +- Don't force pytest, when the easiest way is just to follow + the flow and go with the unittest runner. + ------------------------------------------------------------------- Sun Aug 16 21:25:42 UTC 2020 - John Vandenberg diff --git a/python-pyshould.spec b/python-pyshould.spec index 90aab8f..df2a2b3 100644 --- a/python-pyshould.spec +++ b/python-pyshould.spec @@ -33,7 +33,6 @@ Requires: python-hamcrest BuildArch: noarch # SECTION test requirements BuildRequires: %{python_module hamcrest} -BuildRequires: %{python_module pytest} # /SECTION %python_subpackages @@ -54,8 +53,6 @@ the standard AssertionError. %prep %setup -q -n %{modname}-%{version} sed -i '/nose/d' setup.py -# Remove __init__.py to help 15.x -rm tests/__init__.py %build %python_build @@ -68,7 +65,10 @@ rm tests/__init__.py } %check -%pytest tests/*.py +# %%pyunittest is still not available in TW, so we have to expand it manually +%{python_expand export PYTHONPATH=$PYTHONPATH:%{buildroot}%{$python_sitelib} PYTHONDONTWRITEBYTECODE=1 +$python -munittest -v +} %files %{python_files} %doc README.md