From e282293b96c305436f1a357a0e0c4ef1638c803d2f93ba8b024663e09cffb9e8 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 14 Sep 2021 15:17:06 +0000 Subject: [PATCH] Accepting request 918915 from home:pgajdos:python - %check: use %pyunittest_arch rpm macro OBS-URL: https://build.opensuse.org/request/show/918915 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-ldap?expand=0&rev=125 --- python-ldap.changes | 5 +++++ python-ldap.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-ldap.changes b/python-ldap.changes index 8d8382f..92e0dee 100644 --- a/python-ldap.changes +++ b/python-ldap.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Sep 14 12:35:59 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest_arch rpm macro + ------------------------------------------------------------------- Mon Sep 28 02:59:28 UTC 2020 - William Brown diff --git a/python-ldap.spec b/python-ldap.spec index 79f547a..15443b3 100644 --- a/python-ldap.spec +++ b/python-ldap.spec @@ -1,7 +1,7 @@ # # spec file for package python-ldap # -# 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 @@ -61,7 +61,7 @@ CFLAGS="%{optflags}" %python_build %python_expand %fdupes %{buildroot}%{$python_sitearch} %check -%python_exec setup.py test +%pyunittest_arch discover -v -s Tests -p 't_*' %files %{python_files} %license LICENCE