def test_font_face(font_face): with pytest.raises(TypeError): cairo.FontFace() assert font_face == font_face assert font_face != object()
def __new__(cls, *args, **kwargs): import cairo return cairo.FontFace(*args, **kwargs)