From 80c6209d981d9f5abd52a0683645a0f0edf3913a0049e27980cb8f2f04e0f784 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Sat, 28 Aug 2021 08:29:35 +0000 Subject: [PATCH] Accepting request 914569 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/914569 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-tzlocal?expand=0&rev=27 --- python-tzlocal.changes | 5 +++++ python-tzlocal.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-tzlocal.changes b/python-tzlocal.changes index c780933..e89bbb3 100644 --- a/python-tzlocal.changes +++ b/python-tzlocal.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Fri Aug 27 10:24:11 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Tue Jun 2 17:17:59 UTC 2020 - Dirk Mueller diff --git a/python-tzlocal.spec b/python-tzlocal.spec index 38595d5..7a377cd 100644 --- a/python-tzlocal.spec +++ b/python-tzlocal.spec @@ -1,7 +1,7 @@ # -# spec file for package python-tzlocal +# spec file # -# 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 @@ -62,7 +62,7 @@ file. However, if the timezone name is readily available it will be used. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pyunittest discover -v %files %{python_files} %license LICENSE.txt