forked from pool/python-pyshould
- 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
This commit is contained in:
@@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Aug 17 12:38:29 UTC 2020 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- 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 <jayvdb@gmail.com>
|
||||
|
||||
|
@@ -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
|
||||
|
Reference in New Issue
Block a user