From aefea85b9efd8ab7c4e28cd7c97caae90ae2816e3904f0af9c8a88c5ce99ed59 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Wed, 19 May 2021 12:10:00 +0000 Subject: [PATCH] Accepting request 894270 from home:pgajdos:python - use %pytest macro in %check OBS-URL: https://build.opensuse.org/request/show/894270 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-DateTime?expand=0&rev=4 --- python-DateTime.changes | 5 +++++ python-DateTime.spec | 5 +++-- 2 files changed, 8 insertions(+), 2 deletions(-) diff --git a/python-DateTime.changes b/python-DateTime.changes index c7a2b94..6701b1a 100644 --- a/python-DateTime.changes +++ b/python-DateTime.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed May 19 09:31:11 UTC 2021 - pgajdos@suse.com + +- use %pytest macro in %check + ------------------------------------------------------------------- Thu Aug 1 03:15:12 AM UTC 2019 - John Vandenberg diff --git a/python-DateTime.spec b/python-DateTime.spec index e0d0265..5d9c0d7 100644 --- a/python-DateTime.spec +++ b/python-DateTime.spec @@ -1,7 +1,7 @@ # # spec file for package python-DateTime # -# Copyright (c) 2019 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 @@ -32,6 +32,7 @@ Requires: python-pytz Requires: python-zope.interface BuildArch: noarch # SECTION test requirements +BuildRequires: %{python_module pytest} BuildRequires: %{python_module pytz} BuildRequires: %{python_module zope.interface} # /SECTION @@ -53,7 +54,7 @@ better off using Python's built-in datetime module. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pytest %files %{python_files} %doc CHANGES.rst README.txt