jobextra/python-cairo/note

20 lines
1.3 KiB
Plaintext

_____________________________________ test_svg_surface_get_document_unit _____________________________________
@pytest.mark.skipif(not hasattr(cairo.SVGSurface, get_document_unit),
reason=too old cairo)
def test_svg_surface_get_document_unit():
with cairo.SVGSurface(None, 10, 10) as surface:
> assert surface.get_document_unit() == cairo.SVGUnit.PT
E AssertionError: assert cairo.SVGUnit.USER == cairo.SVGUnit.PT
E + where cairo.SVGUnit.USER = <built-in method get_document_unit of cairo.SVGSurface object at 0x7f3926a48750>()
E + where <built-in method get_document_unit of cairo.SVGSurface object at 0x7f3926a48750> = <cairo.SVGSurface object at 0x7f3926a48750>.get_document_unit
E + and cairo.SVGUnit.PT = <class 'cairo.SVGUnit'>.PT
E + where <class 'cairo.SVGUnit'> = cairo.SVGUnit
tests/test_surface.py:270: AssertionError
========================================== short test summary info ===========================================
FAILED tests/test_surface.py::test_svg_surface_get_document_unit - AssertionError: assert cairo.SVGUnit.USE...
================================== 1 failed, 261 passed, 3 skipped in 0.41s ==================================
With 1 failing test indicating too-old-cairo how is Arch building it with the tests?