enthought/chaco — Issue #32: test_draw_border_simple fails
Author: pberkes
Created: 2011-11-24 13:32:51+00:00
State: open
Labels: defect

The test in chaco/tests/border_test_case.py fails both for the wx backend:

======================================================================
ERROR: Borders should have the correct height and width.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/pberkes/egit/ETS/chaco/chaco/tests/border_test_case.py", line 37, in test_draw_border_simple
actual = gc.bmp_array[:,:,0]
AttributeError: 'PlotGraphicsContext' object has no attribute 'bmp_array'

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

and the qt4 backend:

======================================================================
FAIL: Borders should have the correct height and width.
----------------------------------------------------------------------
Traceback (most recent call last):
File "/Users/pberkes/egit/ETS/chaco/chaco/tests/border_test_case.py", line 38, in test_draw_border_simple
self.assertRavelEqual(actual, desired)
File "/Users/pberkes/egit/ETS/chaco/chaco/tests/border_test_case.py", line 19, in assertRavelEqual
self.assert_(alltrue(ravel(x) == ravel(y)), "\n%s\n !=\n%s" % (x, y))
AssertionError:
[[255 255 255 255 255 255]
[255 0 0 0 0 255]
[255 0 255 255 0 255]
[255 0 255 255 0 255]
[255 0 0 0 0 255]
[255 255 255 255 255 255]]
!=
[[255 255 255 255 255 255]
[255 255 255 255 255 255]
[255 0 0 0 255 255]
[255 0 255 0 255 255]
[255 0 0 0 255 255]
[255 255 255 255 255 255]]

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