Script 'mail_helper' called by obssrc
Hello community,

here is the log from the commit of package python-pyuv for openSUSE:Factory 
checked in at 2023-08-31 13:45:38
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pyuv (Old)
 and      /work/SRC/openSUSE:Factory/.python-pyuv.new.1766 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-pyuv"

Thu Aug 31 13:45:38 2023 rev:7 rq:1108061 version:1.4.0

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-pyuv/python-pyuv.changes  2023-06-20 
16:49:38.431823756 +0200
+++ /work/SRC/openSUSE:Factory/.python-pyuv.new.1766/python-pyuv.changes        
2023-08-31 13:51:19.028230894 +0200
@@ -1,0 +2,5 @@
+Tue Aug 29 10:00:10 UTC 2023 - Markéta Machová <[email protected]>
+
+- Add patch loop.patch to fix the test failure
+
+-------------------------------------------------------------------

New:
----
  loop.patch

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

Other differences:
------------------
++++++ python-pyuv.spec ++++++
--- /var/tmp/diff_new_pack.gICZDK/_old  2023-08-31 13:51:20.212273215 +0200
+++ /var/tmp/diff_new_pack.gICZDK/_new  2023-08-31 13:51:20.220273501 +0200
@@ -28,6 +28,8 @@
 Patch0:         tests_async_keyword.patch
 Patch1:         tests_py3.patch
 Patch2:         fix_building_for_Python311.patch
+# PATCH-FIX-OPENSUSE [email protected] 
https://github.com/saghul/pyuv/issues/279
+Patch3:         loop.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pytest}
 BuildRequires:  %{python_module setuptools}
@@ -41,10 +43,7 @@
 Python interface for libuv.
 
 %prep
-%setup -q -n pyuv-%{version}
-%patch0 -p1
-%patch1 -p1
-%patch2 -p1
+%autosetup -p1 -n pyuv-%{version}
 # Force system libuv
 rm -r deps/libuv
 rmdir deps
@@ -56,17 +55,8 @@
 
 %build
 export CFLAGS="%{optflags}"
-%{python_expand \
-# fix for py3.10, but it doesn't work for py3.8 and lower
-# https://github.com/saghul/pyuv/issues/271
-%if %{$python_version_nodots} > 38
 sed -i 's/Py_REFCNT(self) = refcnt/Py_SET_REFCNT(self, refcnt)/' src/handle.c
-%else
-# what if python3.8 isn't first in the line?
-sed -i 's/Py_SET_REFCNT(self, refcnt)/Py_REFCNT(self) = refcnt/' src/handle.c
-%endif
-$python setup.py build
-}
+%python_build
 
 %install
 %python_install

++++++ loop.patch ++++++
Index: pyuv-1.4.0/tests/test_loop.py
===================================================================
--- pyuv-1.4.0.orig/tests/test_loop.py
+++ pyuv-1.4.0/tests/test_loop.py
@@ -48,9 +48,9 @@ class LoopRunTest(TestCase):
         prepare.start(prepare_cb)
         self.loop.run(pyuv.UV_RUN_DEFAULT)
         self.assertEqual(self.timer_called, 1)
-        self.assertTrue(self.prepare_called >= 2)
+        self.assertEqual(self.prepare_called, 1)
         self.loop.run(pyuv.UV_RUN_NOWAIT)
-        self.assertTrue(self.prepare_called >= 3)
+        self.assertEqual(self.prepare_called, 2)
         self.loop.run(pyuv.UV_RUN_DEFAULT)
         self.assertEqual(self.timer_called, 10)
         self.assertEqual(self.prepare_called, 10)

Reply via email to