From 166b5e9c310798d12fb92e68bbd76c4aeabbfa84fc233048958fd98d8d7cfb1e Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Mon, 31 May 2021 20:27:48 +0000 Subject: [PATCH] Accepting request 896275 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/896275 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-confusable-homoglyphs?expand=0&rev=9 --- python-confusable-homoglyphs.changes | 5 +++++ python-confusable-homoglyphs.spec | 6 +++--- 2 files changed, 8 insertions(+), 3 deletions(-) diff --git a/python-confusable-homoglyphs.changes b/python-confusable-homoglyphs.changes index 52c2e6d..91d8efa 100644 --- a/python-confusable-homoglyphs.changes +++ b/python-confusable-homoglyphs.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Mon May 31 06:43:41 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Wed May 27 09:36:47 UTC 2020 - Petr Gajdos diff --git a/python-confusable-homoglyphs.spec b/python-confusable-homoglyphs.spec index fa896fe..c0d8c46 100644 --- a/python-confusable-homoglyphs.spec +++ b/python-confusable-homoglyphs.spec @@ -1,7 +1,7 @@ # # spec file for package python-confusable-homoglyphs # -# 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 @@ -31,7 +31,7 @@ BuildRequires: fdupes BuildRequires: python-rpm-macros Requires: python-click Requires(post): update-alternatives -Requires(postun): update-alternatives +Requires(postun):update-alternatives BuildArch: noarch %python_subpackages @@ -53,7 +53,7 @@ CAPITAL LETTER A ('A') vs. U+0391 GREEK CAPITAL LETTER ALPHA, 'Α'. %python_expand %fdupes %{buildroot}%{$python_sitelib} %check -%python_exec setup.py test +%pyunittest discover -v tests/ %post %python_install_alternative confusable_homoglyphs