Hello community,

here is the log from the commit of package python-cffi for openSUSE:Factory 
checked in at 2018-11-08 09:42:02
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-cffi (Old)
 and      /work/SRC/openSUSE:Factory/.python-cffi.new (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

Package is "python-cffi"

Thu Nov  8 09:42:02 2018 rev:24 rq:645316 version:1.11.5

Changes:
--------
--- /work/SRC/openSUSE:Factory/python-cffi/python-cffi.changes  2018-10-25 
08:09:15.904308995 +0200
+++ /work/SRC/openSUSE:Factory/.python-cffi.new/python-cffi.changes     
2018-11-08 09:42:04.457550012 +0100
@@ -1,0 +2,7 @@
+Mon Oct 29 16:10:03 CET 2018 - mc...@suse.com
+
+- Add 7a76a381534012af4790e815140d1538510b7d93.patch to fix
+  bsc#1111657 (we need use to proper void returning function not
+  to corrupt memory in tests).
+
+-------------------------------------------------------------------

New:
----
  7a76a381534012af4790e815140d1538510b7d93.patch

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

Other differences:
------------------
++++++ python-cffi.spec ++++++
--- /var/tmp/diff_new_pack.ojNwLA/_old  2018-11-08 09:42:05.101549264 +0100
+++ /var/tmp/diff_new_pack.ojNwLA/_new  2018-11-08 09:42:05.105549259 +0100
@@ -30,6 +30,8 @@
 Patch0:         e2e324a2f13e3a646de6f6ff03e90ed7d37e2636.patch
 # https://bitbucket.org/cffi/cffi/issues/378
 Patch1:         3184b0a675fc425b821b528d7fdf744b2f08dadf.patch
+# 
https://bitbucket.org/cffi/cffi/issues/382/test_sin_no_return_value-violates-calling
+Patch2:         7a76a381534012af4790e815140d1538510b7d93.patch
 BuildRequires:  %{python_module devel}
 BuildRequires:  %{python_module pycparser}
 BuildRequires:  %{python_module pytest}

++++++ 7a76a381534012af4790e815140d1538510b7d93.patch ++++++
# HG changeset patch
# User Armin Rigo <ar...@tunes.org>
# Date 1536088314 -7200
# Node ID 7a76a381534012af4790e815140d1538510b7d93
# Parent  ef09637b23147f63a7d3fda628fa1704c97f1c72
Issue #382

Second fix attempt, thanks Adam

--- a/testing/cffi0/test_function.py
+++ b/testing/cffi0/test_function.py
@@ -45,14 +45,14 @@ class TestFunction(object):
         assert x != math.sin(1.23)    # rounding effects
         assert abs(x - math.sin(1.23)) < 1E-6
 
-    def test_sin_no_return_value(self):
+    def test_lround_no_return_value(self):
         # check that 'void'-returning functions work too
         ffi = FFI(backend=self.Backend())
         ffi.cdef("""
-            void sin(double x);
+            void lround(double x);
         """)
         m = ffi.dlopen(lib_m)
-        x = m.sin(1.23)
+        x = m.lround(1.23)
         assert x is None
 
     def test_dlopen_filename(self):

Reply via email to