ObjectListView Test Error

Hi,

When I run the ListCtrlPrinter test that’s included with ObjectListView, it fails. Here are the results:

…FFF

···

==============================

========================================

FAIL: testCalculateListSlices (main.TestListBlock)


Traceback (most recent call last):

File “test_ListCtrlPrinter.py”, line 65, in testCalculateListSlices

self.assertEqual(block.CalculateSlices(500, [300, 300, 200]), [ [0, 0], [1,

2] ])

AssertionError: [[0, 2]] != [[0, 0], [1, 2]]

======================================================================

FAIL: testCalculateHeightNoWrapping (main.TestTextBlock)


Traceback (most recent call last):

File “test_ListCtrlPrinter.py”, line 32, in testCalculateHeightNoWrapping

self.assertEqual(block.CalculateHeight(wx.ScreenDC()), 19)

AssertionError: 24 != 19

======================================================================

FAIL: testCalculateHeightWrapping (main.TestTextBlock)


Traceback (most recent call last):

File “test_ListCtrlPrinter.py”, line 47, in testCalculateHeightWrapping

self.assertEqual(block.CalculateHeight(wx.ScreenDC()), 38)

AssertionError: 24 != 38


Ran 6 tests in 0.043s

FAILED (failures=3)

I ran this test on Windows 7 Home, wxPython 2.8.10.1, Python 2.5.

Mike Driscoll

Blog: http://blog.pythonlibrary.org