From 6c785709b30ee48106e4fdb58ae150d5ac6b4fbd6fb64d66b4663ed3c2a6bd0a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mark=C3=A9ta=20Machov=C3=A1?= Date: Tue, 25 May 2021 11:16:17 +0000 Subject: [PATCH] Accepting request 895319 from home:pgajdos:python - %check: use %pyunittest_arch rpm macro OBS-URL: https://build.opensuse.org/request/show/895319 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-lupa?expand=0&rev=13 --- python-lupa.changes | 5 +++++ python-lupa.spec | 4 +++- 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/python-lupa.changes b/python-lupa.changes index 9cfdc03..146988d 100644 --- a/python-lupa.changes +++ b/python-lupa.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue May 25 09:45:01 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest_arch rpm macro + ------------------------------------------------------------------- Thu Jan 7 16:28:30 UTC 2021 - Matej Cepl diff --git a/python-lupa.spec b/python-lupa.spec index 0cf5d5f..84e7121 100644 --- a/python-lupa.spec +++ b/python-lupa.spec @@ -55,7 +55,9 @@ export CFLAGS="-fno-strict-aliasing %{optflags}" %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_exec setup.py test +mv lupa/tests . +mv lupa lupa.hide +%pyunittest_arch discover -v %files %{python_files} %doc CHANGES.rst README.rst