From 7a33f4bddd27a33a8e9be782beef3e9bd69a9a36cc94e99225b54467a848271e Mon Sep 17 00:00:00 2001 From: John Vandenberg Date: Wed, 1 Sep 2021 12:58:58 +0000 Subject: [PATCH] Accepting request 914388 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/914388 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-vim-vint?expand=0&rev=11 --- python-vim-vint.changes | 5 +++++ python-vim-vint.spec | 9 ++++++--- 2 files changed, 11 insertions(+), 3 deletions(-) diff --git a/python-vim-vint.changes b/python-vim-vint.changes index 57902be..4136fe0 100644 --- a/python-vim-vint.changes +++ b/python-vim-vint.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Aug 26 10:30:59 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Mon May 18 07:25:31 UTC 2020 - Petr Gajdos diff --git a/python-vim-vint.spec b/python-vim-vint.spec index a893774..7cb717f 100644 --- a/python-vim-vint.spec +++ b/python-vim-vint.spec @@ -1,7 +1,7 @@ # # spec file for package python-vim-vint # -# Copyright (c) 2020 SUSE LLC +# Copyright (c) 2021 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -41,7 +41,7 @@ Requires: python-PyYAML >= 3.11 Requires: python-ansicolor >= 0.2.4 Requires: python-chardet >= 2.3.0 Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch %if %{with python2} BuildRequires: python-enum34 >= 1.0.4 @@ -77,7 +77,10 @@ sed -i -e '/^#!\//, 1d' vint/_bundles/vimlparser.py %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} $python setup.py test +# this test fails with 3.9 when building, but succedes on changeroot +# when run manually when run by python3.9 -m unittest discover -v +rm ./test/acceptance/test_cli.py +%pyunittest discover -v %post %python_install_alternative vint