python-cairocffi/skip-pikepdf.patch

53 lines
1.6 KiB
Diff

Index: cairocffi-1.7.0/cairocffi/test_cairo.py
===================================================================
--- cairocffi-1.7.0.orig/cairocffi/test_cairo.py
+++ cairocffi-1.7.0/cairocffi/test_cairo.py
@@ -20,7 +20,6 @@ import shutil
import sys
import tempfile
-import pikepdf
import pytest
import cairocffi
@@ -240,6 +239,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)
@@ -265,6 +265,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)
@@ -281,6 +282,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)
@@ -292,6 +294,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)
@@ -420,6 +423,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')