15
0

- Fix the test call to work on 42.3

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-asteval?expand=0&rev=6
This commit is contained in:
Tomáš Chvátal
2018-08-29 10:27:36 +00:00
committed by Git OBS Bridge
parent 74d7e95479
commit 1883c361d4
2 changed files with 6 additions and 4 deletions

View File

@@ -25,7 +25,6 @@ License: MIT
Group: Development/Languages/Python
Url: http://github.com/newville/asteval
Source: https://files.pythonhosted.org/packages/source/a/asteval/asteval-%{version}.tar.gz
BuildRequires: %{python_module devel}
BuildRequires: %{python_module setuptools}
# SECTION test requirements
BuildRequires: %{python_module numpy >= 1.6}
@@ -64,9 +63,7 @@ sed -i -e '/^#!\//, 1d' asteval/asteval.py
%check
pushd tests
%{python_expand export PYTHONPATH=%{buildroot}%{$python_sitelib}
pytest-%{$python_bin_suffix}
}
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix}
popd
%files %{python_files}