Accepting request 811047 from home:pgajdos:python
- unittest2 -> pytest OBS-URL: https://build.opensuse.org/request/show/811047 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyparsing?expand=0&rev=74
This commit is contained in:
parent
1db5aae19e
commit
77aab6c1d3
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jun 3 08:31:39 UTC 2020 - pgajdos@suse.com
|
||||
|
||||
- unittest2 -> pytest
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue May 5 09:08:59 UTC 2020 - Dirk Mueller <dmueller@suse.com>
|
||||
|
||||
|
@ -27,6 +27,7 @@
|
||||
%define psuffix %{nil}
|
||||
%bcond_with test
|
||||
%endif
|
||||
%bcond_without python2
|
||||
Name: python-pyparsing%{psuffix}
|
||||
Version: 2.4.7
|
||||
Release: 0
|
||||
@ -39,7 +40,7 @@ BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
BuildArch: noarch
|
||||
%if %{with test}
|
||||
BuildRequires: %{python_module unittest2}
|
||||
BuildRequires: %{python_module pytest}
|
||||
%endif
|
||||
%ifpython2
|
||||
Provides: %{oldpython}-parsing = %{version}
|
||||
@ -74,12 +75,7 @@ cp -r pyparsing.egg-info %{buildroot}%{$python_sitelib}/pyparsing-%{version}-py%
|
||||
|
||||
%check
|
||||
%if %{with test}
|
||||
%{python_expand export PYTHONPATH=.
|
||||
# unittest from Python 2.7 doesn't load tests correctly
|
||||
# no work simple_unit_tests.py examples.antlr_grammar_tests
|
||||
$python -munittest2 -v examples.test_bibparse
|
||||
$python unitTests.py
|
||||
}
|
||||
%pytest
|
||||
%endif
|
||||
|
||||
%if ! %{with test}
|
||||
|
Loading…
Reference in New Issue
Block a user