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