From 55bac5b4fe55382f1dca261be624f35548988c67a3ac2d0eaeb80464d826b96e Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Thu, 3 Jun 2021 12:27:14 +0000 Subject: [PATCH] Accepting request 897190 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/897190 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-requests-file?expand=0&rev=10 --- python-requests-file.changes | 5 +++++ python-requests-file.spec | 7 ++----- 2 files changed, 7 insertions(+), 5 deletions(-) diff --git a/python-requests-file.changes b/python-requests-file.changes index cd5a529..1e3b424 100644 --- a/python-requests-file.changes +++ b/python-requests-file.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Thu Jun 3 12:11:33 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Mon Aug 3 10:42:35 UTC 2020 - Marketa Calabkova diff --git a/python-requests-file.spec b/python-requests-file.spec index a4cded3..f701a88 100644 --- a/python-requests-file.spec +++ b/python-requests-file.spec @@ -1,7 +1,7 @@ # # spec file for package python-requests-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 @@ -17,7 +17,6 @@ %{?!python_module:%define python_module() python-%{**} python3-%{**}} -%bcond_without tests Name: python-requests-file Version: 1.5.1 Release: 0 @@ -48,10 +47,8 @@ library to allow local filesystem access via file:// URLs. %python_install %python_expand %fdupes %{buildroot}%{$python_sitelib} -%if %{with tests} %check -%python_exec -m unittest discover tests -%endif +%pyunittest discover -v tests %files %{python_files} %license LICENSE