Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pysmb for openSUSE:Factory 
checked in at 2021-01-18 14:39:26
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pysmb (Old)
 and      /work/SRC/openSUSE:Factory/.python-pysmb.new.28504 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pysmb"

Mon Jan 18 14:39:26 2021 rev:8 rq:864066 version:1.2.6

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pysmb/python-pysmb.changes        
2020-12-16 11:01:03.811603843 +0100
+++ /work/SRC/openSUSE:Factory/.python-pysmb.new.28504/python-pysmb.changes     
2021-01-18 14:46:18.546064158 +0100
@@ -1,0 +2,5 @@
+Sat Jan 16 16:43:33 UTC 2021 - Benjamin Greiner <c...@bnavigator.de>
+
+- Fix test suite call 
+
+-------------------------------------------------------------------

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

Other differences:
------------------
++++++ python-pysmb.spec ++++++
--- /var/tmp/diff_new_pack.FmJ1mP/_old  2021-01-18 14:46:19.174065105 +0100
+++ /var/tmp/diff_new_pack.FmJ1mP/_new  2021-01-18 14:46:19.178065111 +0100
@@ -1,7 +1,7 @@
 #
 # spec file for package python-pysmb
 #
-# 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,6 +31,7 @@
 Requires:       python-pyasn1
 BuildArch:      noarch
 # SECTION test requirements
+# nose packages still imported despite pytest
 BuildRequires:  %{python_module nose}
 BuildRequires:  %{python_module pyasn1}
 BuildRequires:  %{python_module pytest}
@@ -59,8 +60,11 @@
 %python_expand %fdupes %{buildroot}%{$python_sitelib}
 
 %check
-# Run only the tests that can work without network (and only from the right 
pythoni2/3 dir)
-%python_expand %pytest $python -k 'not SMB and not test_broadcast'
+%{python_expand # Run only the tests that can work without network (and only 
from the right python[2,3] dir)
+# (the trick here is that $python_ is expanded early by the pytest and 
python_expand macros, not by the shell)
+ $python_testdir=${python_flavor:0:7}
+}
+%pytest ${$python_testdir} -k 'not SMB and not test_broadcast'
 
 %files %{python_files}
 %doc CHANGELOG README.txt

Reply via email to