Accepting request 821300 from devel:languages:python

- Skip over RulesTest.test_rule_from_node test
  (https://gitlab.freedesktop.org/xdg/pyxdg/-/issues/20)

OBS-URL: https://build.opensuse.org/request/show/821300
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyxdg?expand=0&rev=9
This commit is contained in:
Dominique Leuenberger 2020-07-26 14:14:03 +00:00 committed by Git OBS Bridge
commit 724a4bcc0f
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Thu Jul 16 12:13:19 UTC 2020 - Matej Cepl <mcepl@suse.com>
- Skip over RulesTest.test_rule_from_node test
(https://gitlab.freedesktop.org/xdg/pyxdg/-/issues/20)
-------------------------------------------------------------------
Mon Mar 2 08:27:33 UTC 2020 - Tomáš Chvátal <tchvatal@suse.com>

View File

@ -55,8 +55,7 @@ PyXDG is a python library to access freedesktop.org standards. Currently support
%prep
%setup -q -n pyxdg-%{version}
%patch0 -p1
%patch1 -p1
%autopatch -p1
%build
%python_build
@ -69,8 +68,9 @@ PyXDG is a python library to access freedesktop.org standards. Currently support
# https://gitlab.freedesktop.org/xdg/pyxdg/issues/15
# test_get_type{,2} both fail but come from s-m-i package for data
# https://gitlab.freedesktop.org/xdg/pyxdg/merge_requests/4
# RulesTest.test_rule_from_node failure is https://gitlab.freedesktop.org/xdg/pyxdg/-/issues/20
%{python_expand sed -i "s/Exec=python.*$/Exec=$python/" test/resources.py
PYTHONPATH=%{buildroot}%{$python_sitelib} pytest-%{$python_bin_suffix} test/test-*.py -v -k 'not test_get_type'
PYTHONPATH=%{buildroot}%{$python_sitelib} pytest-%{$python_bin_suffix} test/test-*.py -v -k 'not (test_get_type or test_rule_from_node)'
}
%files %{python_files}