Script 'mail_helper' called by obssrc
Hello community,

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

Package is "python-random2"

Sat Nov  6 18:13:25 2021 rev:6 rq:929053 version:1.0.1

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-random2/python-random2.changes    
2021-04-17 23:25:03.285603216 +0200
+++ /work/SRC/openSUSE:Factory/.python-random2.new.1890/python-random2.changes  
2021-11-06 18:13:46.608751815 +0100
@@ -1,0 +2,5 @@
+Wed Nov  3 10:52:10 UTC 2021 - pgaj...@suse.com
+
+- %check: use %pytest rpm macro
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-random2.spec ++++++
--- /var/tmp/diff_new_pack.Vo6ttp/_old  2021-11-06 18:13:47.912752499 +0100
+++ /var/tmp/diff_new_pack.Vo6ttp/_new  2021-11-06 18:13:47.912752499 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-random2
 #
-# Copyright (c) 2019 SUSE LINUX GmbH, Nuernberg, Germany.
+# Copyright (c) 2021 SUSE LLC
 # Copyright (c) 2013 LISA GmbH, Bingen, Germany.
 #
 # All modifications and additions to the file contributed by third parties
@@ -27,6 +27,7 @@
 Source:         
https://files.pythonhosted.org/packages/source/r/random2/random2-%{version}.zip
 # PATCH-FIX-UPSTREAM -- python3.9.patch Origin: Debian
 Patch0:         python3.9.patch
+BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
 BuildRequires:  fdupes
 BuildRequires:  python-rpm-macros
@@ -57,7 +58,9 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-%python_exec setup.py test
+# see tests.test_suite
+classes='WichmannHill_TestBasicOps or MersenneTwister_TestBasicOps or 
TestDistributions or TestModule'
+%pytest -k "$classes" src/tests.py
 
 %files %{python_files}
 %doc CHANGES.txt README.txt PKG-INFO

Reply via email to