Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-yarg for openSUSE:Factory 
checked in at 2021-11-06 18:13:06
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-yarg (Old)
 and      /work/SRC/openSUSE:Factory/.python-yarg.new.1890 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-yarg"

Sat Nov  6 18:13:06 2021 rev:2 rq:928870 version:0.1.9

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-yarg/python-yarg.changes  2019-03-04 
09:22:49.976574446 +0100
+++ /work/SRC/openSUSE:Factory/.python-yarg.new.1890/python-yarg.changes        
2021-11-06 18:13:16.512736051 +0100
@@ -1,0 +2,5 @@
+Fri Oct  8 08:54:08 UTC 2021 - [email protected]
+
+- %check: use %pyunittest rpm macro
+
+-------------------------------------------------------------------

++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Other differences:
------------------
++++++ python-yarg.spec ++++++
--- /var/tmp/diff_new_pack.Wn1ElS/_old  2021-11-06 18:13:17.160736390 +0100
+++ /var/tmp/diff_new_pack.Wn1ElS/_new  2021-11-06 18:13:17.164736392 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-yarg
 #
-# 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,7 +32,6 @@
 Requires:       python-requests
 BuildArch:      noarch
 # SECTION test requirements
-BuildRequires:  %{python_module mock}
 BuildRequires:  %{python_module requests}
 # /SECTION
 %python_subpackages
@@ -53,7 +52,9 @@
 %python_expand rm -r %{buildroot}%{$python_sitelib}/tests
 
 %check
-%python_exec setup.py test
+# https://github.com/kura/yarg/issues/8
+sed -i 's:from mock:from unittest.mock:' tests/test_*.py
+%pyunittest discover -v
 
 %files %{python_files}
 %doc CHANGES.rst README.rst

Reply via email to