From 6a1e69cafe78e4440355923a47bf733d099b207225c0effb3a80c138a4cd4e32 Mon Sep 17 00:00:00 2001 From: Dirk Mueller Date: Sat, 6 Nov 2021 10:37:12 +0000 Subject: [PATCH] Accepting request 928999 from home:pgajdos:python - %check: use %pyunittest rpm macro OBS-URL: https://build.opensuse.org/request/show/928999 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-UkPostcodeParser?expand=0&rev=5 --- python-UkPostcodeParser.changes | 5 +++++ python-UkPostcodeParser.spec | 4 ++-- 2 files changed, 7 insertions(+), 2 deletions(-) diff --git a/python-UkPostcodeParser.changes b/python-UkPostcodeParser.changes index dcfa354..da0eab2 100644 --- a/python-UkPostcodeParser.changes +++ b/python-UkPostcodeParser.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Wed Nov 3 11:34:19 UTC 2021 - pgajdos@suse.com + +- %check: use %pyunittest rpm macro + ------------------------------------------------------------------- Mon Feb 18 00:42:49 UTC 2019 - John Vandenberg diff --git a/python-UkPostcodeParser.spec b/python-UkPostcodeParser.spec index 29e0504..4bdb93e 100644 --- a/python-UkPostcodeParser.spec +++ b/python-UkPostcodeParser.spec @@ -1,7 +1,7 @@ # # spec file for package python-UkPostcodeParser # -# 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 @@ -49,7 +49,7 @@ United Kingdom Postcode parser. %check # no tests as it is ko for 2 years https://github.com/hamstah/ukpostcodeparser/issues/8 sed -i 's/test_\(091\|097\|098\|125\|131\)/_test_\1/' ukpostcodeparser/test/parser.py -%python_exec setup.py test +%pyunittest ukpostcodeparser.test.parser %files %{python_files} %license LICENSE