Skip to content

Plotting/cairo-related test failures #677

@szhorvat

Description

@szhorvat

I'm getting test failures on main when running the test suite on my own computer. This is with the latest commit as of today, 4db1260

Any idea what is going wrong here, and why it doesn't fail on the CI?

I have:

~/R/python-igraph (main|✔) [2] $ conda list cairo
# packages in environment at /Users/szhorvat/opt/miniconda3/envs/igdev:
#
# Name                    Version                   Build  Channel
cairo                     1.16.0               h3ce6f7e_4  
pycairo                   1.23.0          py310h0eaaf77_0  
~/R/python-igraph (main|✔) $ conda list matplotlib
# packages in environment at /Users/szhorvat/opt/miniconda3/envs/igdev:
#
# Name                    Version                   Build  Channel
matplotlib                3.7.1           py310hecd8cb5_1  
matplotlib-base           3.7.1           py310ha533b9c_1  
matplotlib-inline         0.1.6           py310hecd8cb5_0  

Python 3.10.11 on macOS 10.14.6.


Failures:

$ python -m unittest                                                                                                       (igdev) 
.FFFFF...............................................3 0
...................................................................................s...............................................................................................ss.....s..s...s............s...........sss....................................................................................................................................................................................
======================================================================
FAIL: test_clustering_directed_small (tests.drawing.cairo.test_graph.ClusteringTestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/szhorvat/Repos/python-igraph/tests/drawing/cairo/utils.py", line 131, in wrapper
    self.assertLessEqual(res, tol)
AssertionError: 7973492 not less than or equal to 0

======================================================================
FAIL: test_basic (tests.drawing.cairo.test_graph.GraphTestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/szhorvat/Repos/python-igraph/tests/drawing/cairo/utils.py", line 131, in wrapper
    self.assertLessEqual(res, tol)
AssertionError: 3630634 not less than or equal to 0

======================================================================
FAIL: test_directed (tests.drawing.cairo.test_graph.GraphTestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/szhorvat/Repos/python-igraph/tests/drawing/cairo/utils.py", line 131, in wrapper
    self.assertLessEqual(res, tol)
AssertionError: 3785661 not less than or equal to 0

======================================================================
FAIL: test_mark_groups (tests.drawing.cairo.test_graph.GraphTestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/szhorvat/Repos/python-igraph/tests/drawing/cairo/utils.py", line 131, in wrapper
    self.assertLessEqual(res, tol)
AssertionError: 3785661 not less than or equal to 0

======================================================================
FAIL: test_mark_groups_squares (tests.drawing.cairo.test_graph.GraphTestRunner)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "/Users/szhorvat/Repos/python-igraph/tests/drawing/cairo/utils.py", line 131, in wrapper
    self.assertLessEqual(res, tol)
AssertionError: 3901834 not less than or equal to 0

----------------------------------------------------------------------
Ran 454 tests in 3.850s

FAILED (failures=5, skipped=10)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions