version 1.2.0 pixbuf test fail
ndowens opened this issue · comments
Nathan commented
platform linux -- Python 3.9.0, pytest-6.1.2, py-1.9.0, pluggy-0.13.1
rootdir: /builddir/cairocffi-1.2.0, configfile: setup.cfg
plugins: cov-2.10.1, flake8-1.0.6, isort-1.2.0
collected 86 items / 1 skipped / 85 selected
setup.py .. [ 2%]
cairocffi/__init__.py .. [ 4%]
cairocffi/constants.py .. [ 6%]
cairocffi/context.py .. [ 9%]
cairocffi/ffi_build.py .. [ 11%]
cairocffi/fonts.py .. [ 13%]
cairocffi/matrix.py .. [ 16%]
cairocffi/patterns.py .. [ 18%]
cairocffi/pixbuf.py .. [ 20%]
cairocffi/surfaces.py .. [ 23%]
cairocffi/test_cairo.py ................................................ [ 79%]
[ 79%]
cairocffi/test_numpy.py ... [ 82%]
cairocffi/test_pixbuf.py ...x... [ 90%]
cairocffi/test_xcb.py .. [ 93%]
cairocffi/xcb.py .. [ 95%]
cairocffi/_generated/ffi.py .. [ 97%]
cairocffi/_generated/ffi_pixbuf.py .. [100%]
=================== 85 passed, 1 skipped, 1 xfailed in 2.35s ===================
Felix Schwarz commented
Not sure what the issue here is exactly. It seems like test_gdk()
xfails which is does because pixbuf.gdk
is None
.
In cairocffi/pixbuf.py
this code is responsible for populating pixbuf.gdk
:
try:
gdk = dlopen(
ffi, ('gdk-3', 'libgdk-3-0'),
('libgdk-3.so.0', 'libgdk-3.0.dylib', 'libgdk-3-0.dll'))
except OSError:
gdk = None
So it seems like the code can not load gdk-3
(libgdk-3.so.0
which comes with the gtk3
package in Fedora).
Did I misunderstand something here?
Nathan commented
I will check dep and retry and let you know.