From 6c13c4732dc116eaaf604ab2e3d66b3cba1b114a14b97cdf6e49188cc469b22f Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 1 Sep 2021 18:54:57 +0000 Subject: [PATCH] Accepting request 915473 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/915473 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-isc_dhcp_leases?expand=0&rev=4 --- python-isc_dhcp_leases.changes | 5 +++++ python-isc_dhcp_leases.spec | 7 ++++--- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/python-isc_dhcp_leases.changes b/python-isc_dhcp_leases.changes index 2dc2702..83c3aea 100644 --- a/python-isc_dhcp_leases.changes +++ b/python-isc_dhcp_leases.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Sep 1 11:53:37 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Fri Apr 17 13:23:53 UTC 2020 - Martin Hauke diff --git a/python-isc_dhcp_leases.spec b/python-isc_dhcp_leases.spec index 0728ef7..89c3ab6 100644 --- a/python-isc_dhcp_leases.spec +++ b/python-isc_dhcp_leases.spec @@ -1,7 +1,7 @@ # # spec file for package python-isc_dhcp_leases # -# Copyright (c) 2020 SUSE LINUX GmbH, Nuernberg, Germany. +# 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 @@ -12,7 +12,8 @@ # license that conforms to the Open Source Definition (Version 1.9) # published by the Open Source Initiative. -# Please submit bugfixes or comments via http://bugs.opensuse.org/ +# Please submit bugfixes or comments via https://bugs.opensuse.org/ +# %{?!python_module:%define python_module() python-%{**} python3-%{**}} @@ -51,7 +52,7 @@ running in IPv6 mode. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pyunittest discover -v %files %{python_files} %license LICENSE