Skip to content

Test suite failure with typings and TeeSurface #238

@pkgw

Description

@pkgw

When building pycairo 1.20.1 in the conda-forge packaging system, we get build failures on a variety of platforms due to the typings test suite having an issue with TeeSurface:

=================================== FAILURES ===================================
_________________________________ test_typing __________________________________

    def test_typing():
[...]
        cairo_version = tuple(map(int, cairo.cairo_version_string().split(".")))
        if cairo_version >= (1, 16, 0):
>           assert collect_names(cairo) == collect_names(mod)
E           AssertionError: assert {'ANTIALIAS_B...AS_NONE', ...} == {'ANTIALIAS_B...AS_NONE', ...}
E             Extra items in the right set:
E             'TeeSurface'
E             'TeeSurface.add'
E             'TeeSurface.index'
E             'TeeSurface.remove'
E             Use -v to get the full diff

I think we'll try hacking around this by adding TeeSurface to the list of platform-dependent surfaces like XlibSurface that are ignored within this test, but I have no sense as to whether that's actually a good solution.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions