Skip to content

A large number of errors observed in the testsuite with the celiagg backend. #785

@rahulporuri

Description

@rahulporuri

A number of errors were observed in the testsuite when ETS_TOOLKIT=qt.celiagg, Note that these failures were observed on windows.

======================================================================
ERROR: test_text_plot (chaco.tests.test_plot.PlotTestCase)
----------------------------------------------------------------------
Traceback (most recent call last):
  File "C:\Users\rporuri\.edm\envs\chaco-test\lib\site-packages\chaco\tests\test_plot.py", line 117, in test_text_plot
    gc = PlotGraphicsContext((250, 250))
  File "C:\Users\rporuri\.edm\envs\chaco-test\lib\site-packages\chaco\plot_graphics_context.py", line 42, in __init__
    size_or_ary, *args, **kw
  File "C:\Users\rporuri\.edm\envs\chaco-test\lib\site-packages\kiva\celiagg.py", line 93, in __init__
    buffer = np.zeros(shape, dtype=np.uint8)
TypeError: 'float' object cannot be interpreted as an integer

----------------------------------------------------------------------

The culprit seems to be size_or_ary in the PlotGraphicsContextMixin object.

if type(size_or_ary) in (list, tuple) and len(size_or_ary) == 2:
size_or_ary = (
size_or_ary[0] * scale + 1,
size_or_ary[1] * scale + 1,
)
super().__init__(
size_or_ary, *args, **kw
)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions