forked from pool/python-cairocffi
Dirk Mueller
901d9c6fef
* move to pyproject.toml * Try to support and test more Python versions * Catch more errors when creating PNG files * Include utils and docs in the source package * Include all Setuptool’s building functions in custom building script * Build generated files manually when building wheels * Install xcffib if possible during the wheel generation - add skip-pikepdf.patch to skip pikepdf from tests - use LICENSE from package OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-cairocffi?expand=0&rev=54
53 lines
1.6 KiB
Diff
53 lines
1.6 KiB
Diff
Index: cairocffi-1.5.1/cairocffi/test_cairo.py
|
|
===================================================================
|
|
--- cairocffi-1.5.1.orig/cairocffi/test_cairo.py
|
|
+++ cairocffi-1.5.1/cairocffi/test_cairo.py
|
|
@@ -21,7 +21,6 @@ import sys
|
|
import tempfile
|
|
|
|
import cairocffi
|
|
-import pikepdf
|
|
import pytest
|
|
|
|
from . import (
|
|
@@ -239,6 +238,7 @@ def test_device_scale():
|
|
|
|
@pytest.mark.xfail(cairo_version() < 11504,
|
|
reason='Cairo version too low')
|
|
+@pytest.mark.skip(reason="No pikepdf")
|
|
def test_metadata():
|
|
file_obj = io.BytesIO()
|
|
surface = PDFSurface(file_obj, 1, 1)
|
|
@@ -264,6 +264,7 @@ def test_metadata():
|
|
|
|
@pytest.mark.xfail(cairo_version() < 11504,
|
|
reason='Cairo version too low')
|
|
+@pytest.mark.skip(reason="No pikepdf")
|
|
def test_outline():
|
|
file_obj = io.BytesIO()
|
|
surface = PDFSurface(file_obj, 1, 1)
|
|
@@ -280,6 +281,7 @@ def test_outline():
|
|
|
|
@pytest.mark.xfail(cairo_version() < 11504,
|
|
reason='Cairo version too low')
|
|
+@pytest.mark.skip(reason="No pikepdf")
|
|
def test_page_label():
|
|
file_obj = io.BytesIO()
|
|
surface = PDFSurface(file_obj, 1, 1)
|
|
@@ -291,6 +293,7 @@ def test_page_label():
|
|
|
|
@pytest.mark.xfail(cairo_version() < 11504,
|
|
reason='Cairo version too low')
|
|
+@pytest.mark.skip(reason="No pikepdf")
|
|
def test_tag():
|
|
file_obj = io.BytesIO()
|
|
surface = PDFSurface(file_obj, 10, 10)
|
|
@@ -419,6 +422,7 @@ def test_pdf_versions():
|
|
assert file_obj.getvalue().startswith(b'%PDF-1.4')
|
|
|
|
|
|
+@pytest.mark.skip(reason="No pikepdf")
|
|
def test_pdf_surface():
|
|
with temp_directory() as tempdir:
|
|
filename = os.path.join(tempdir, 'foo.pdf')
|