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:
Tomáš Chvátal 2020-06-03 08:59:48 +00:00 committed by Git OBS Bridge
parent 1db5aae19e
commit 77aab6c1d3
2 changed files with 8 additions and 7 deletions

View File

@ -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> Tue May 5 09:08:59 UTC 2020 - Dirk Mueller <dmueller@suse.com>

View File

@ -27,6 +27,7 @@
%define psuffix %{nil} %define psuffix %{nil}
%bcond_with test %bcond_with test
%endif %endif
%bcond_without python2
Name: python-pyparsing%{psuffix} Name: python-pyparsing%{psuffix}
Version: 2.4.7 Version: 2.4.7
Release: 0 Release: 0
@ -39,7 +40,7 @@ BuildRequires: fdupes
BuildRequires: python-rpm-macros BuildRequires: python-rpm-macros
BuildArch: noarch BuildArch: noarch
%if %{with test} %if %{with test}
BuildRequires: %{python_module unittest2} BuildRequires: %{python_module pytest}
%endif %endif
%ifpython2 %ifpython2
Provides: %{oldpython}-parsing = %{version} Provides: %{oldpython}-parsing = %{version}
@ -74,12 +75,7 @@ cp -r pyparsing.egg-info %{buildroot}%{$python_sitelib}/pyparsing-%{version}-py%
%check %check
%if %{with test} %if %{with test}
%{python_expand export PYTHONPATH=. %pytest
# 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
}
%endif %endif
%if ! %{with test} %if ! %{with test}