Accepting request 645313 from home:mcepl:work
- Add 7a76a381534012af4790e815140d1538510b7d93.patch to fix bsc#1111657 (we need use to proper void returning function not to corrupt memory in tests). OBS-URL: https://build.opensuse.org/request/show/645313 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cffi?expand=0&rev=57
This commit is contained in:
parent
e2182e7d2a
commit
0c76d6df2a
29
7a76a381534012af4790e815140d1538510b7d93.patch
Normal file
29
7a76a381534012af4790e815140d1538510b7d93.patch
Normal file
@ -0,0 +1,29 @@
|
||||
# HG changeset patch
|
||||
# User Armin Rigo <arigo@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):
|
@ -1,3 +1,10 @@
|
||||
-------------------------------------------------------------------
|
||||
Mon Oct 29 16:10:03 CET 2018 - mcepl@suse.com
|
||||
|
||||
- Add 7a76a381534012af4790e815140d1538510b7d93.patch to fix
|
||||
bsc#1111657 (we need use to proper void returning function not
|
||||
to corrupt memory in tests).
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 17 18:53:19 CEST 2018 - mcepl@suse.com
|
||||
|
||||
|
@ -30,6 +30,8 @@ Source1: python-cffi-rpmlintrc
|
||||
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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user