From 0c66722b7ba43ebb91b1905ff5ca0ea7df1ebeda4085fc7edae0d9bfd7c6e38d Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 16 Oct 2021 09:36:25 +0000 Subject: [PATCH] Accepting request 924844 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/924844 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-urwid?expand=0&rev=44 --- python-urwid.changes | 5 +++++ python-urwid.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-urwid.changes b/python-urwid.changes index 90c8687..5928632 100644 --- a/python-urwid.changes +++ b/python-urwid.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Oct 12 10:28:44 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Sat Dec 19 10:04:34 UTC 2020 - Dirk Müller diff --git a/python-urwid.spec b/python-urwid.spec index 8c5efb6..b4395c9 100644 --- a/python-urwid.spec +++ b/python-urwid.spec @@ -1,7 +1,7 @@ # # spec file for package python-urwid # -# 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 @@ -60,7 +60,8 @@ find urwid -name "*.py" | xargs sed -i '1 { /^#!/ d }' %check # this test won't work on OBS rm -f urwid/tests/test_vterm.py -%python_exec setup.py -q test +cp *build*/*/urwid/*.so urwid +%pyunittest discover -v %files %{python_files} %license COPYING