Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test_draw_border_simple fails #32

Closed
pberkes opened this issue Nov 24, 2011 · 1 comment
Closed

test_draw_border_simple fails #32

pberkes opened this issue Nov 24, 2011 · 1 comment

Comments

@pberkes
Copy link
Contributor

pberkes commented Nov 24, 2011

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]]
@rahulporuri
Copy link
Contributor

Closing as this specific test is working as expected at the moment.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants