14
0

- 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:
2020-08-17 12:39:49 +00:00
committed by Git OBS Bridge
parent 33e8a8b564
commit d191c9f40b
2 changed files with 10 additions and 4 deletions

View File

@@ -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>

View File

@@ -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