Hi all,
I try to use test-driven development for developing Task Coach. Consequently, I have grown a pretty large test suite for Task Coach. Recently, I started seeing errors when I run all unit tests and integration tests in one go. If I run the unit tests and integration tests separately, no error occurs, i.e. all tests succeed. When I run them all together, I get the output below. Does anyone have an idea what might cause these assertion errors?
Thanks, Frank
[..... 1645 dots snipped .....]FEE
···
======================================================================
ERROR: testSaveSelection_Child (integrationtests.SaveTest.SaveTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\tests\integrationtests\SaveTest.py", line 9, in setUp
self.mockApp = mock.App(args=[self.filename])
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\tests\integrationtests\mock.py", line 17, in __init__
self.init()
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\tests\integrationtests\mock.py", line 20, in init
super(App, self).init(loadSettings=False)
File "C:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoach.py", line 60, in init
settings, splash)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\mainwindow.py", line 55, in __init__
self.createWindowComponents()
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\mainwindow.py", line 64, in createWindowComponents
self.settings, 'mainviewer')
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\viewercontainer.py", line 13, in __init__
super(ViewerContainer, self).__init__(parent, *args, **kwargs)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\widgets\notebook.py", line 143, in __init__
super(Book, self).__init__(parent, -1, *args, **kwargs)
File "c:\Program Files\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\_controls.py", line 3161, in __init__
newobj = _controls_.new_Notebook(*args, **kwargs)
PyAssertionError: C++ assertion "wxAssertFailure" failed in ..\..\src\msw\control.cpp(162): CreateWindowEx("_wx_SysTabCtl32", flags=52010000, ex=00000000) failed
======================================================================
ERROR: testSaveSelection_Parent (integrationtests.SaveTest.SaveTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\tests\integrationtests\SaveTest.py", line 9, in setUp
self.mockApp = mock.App(args=[self.filename])
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\tests\integrationtests\mock.py", line 17, in __init__
self.init()
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\tests\integrationtests\mock.py", line 20, in init
super(App, self).init(loadSettings=False)
File "C:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoach.py", line 60, in init
settings, splash)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\mainwindow.py", line 55, in __init__
self.createWindowComponents()
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\mainwindow.py", line 64, in createWindowComponents
self.settings, 'mainviewer')
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\viewercontainer.py", line 13, in __init__
super(ViewerContainer, self).__init__(parent, *args, **kwargs)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\widgets\notebook.py", line 143, in __init__
super(Book, self).__init__(parent, -1, *args, **kwargs)
File "c:\Program Files\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\_controls.py", line 3161, in __init__
newobj = _controls_.new_Notebook(*args, **kwargs)
PyAssertionError: C++ assertion "wxAssertFailure" failed in ..\..\src\msw\control.cpp(162): CreateWindowEx("_wx_SysTabCtl32", flags=52010000, ex=00000000) failed
======================================================================
FAIL: testSaveAndMerge (integrationtests.SaveTest.SaveTest)
----------------------------------------------------------------------
Traceback (most recent call last):
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\tests\integrationtests\SaveTest.py", line 40, in testSaveAndMerge
mockApp2 = mock.App(args=[self.filename2])
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\tests\integrationtests\mock.py", line 17, in __init__
self.init()
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\tests\integrationtests\mock.py", line 20, in init
super(App, self).init(loadSettings=False)
File "C:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoach.py", line 60, in init
settings, splash)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\mainwindow.py", line 55, in __init__
self.createWindowComponents()
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\mainwindow.py", line 72, in createWindowComponents
self.uiCommands, self.settings, 'effortviewer')
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\viewerfactory.py", line 24, in addEffortViewers
settings)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\viewerfactory.py", line 12, in _addEffortViewers
taskList, uiCommands, settings)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\viewer.py", line 580, in __init__
super(EffortListViewer, self).__init__(parent, list, *args, **kwargs)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\viewer.py", line 148, in __init__
super(UpdatePerSecondViewer, self).__init__(*args, **kwargs)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\viewer.py", line 215, in __init__
super(ViewerWithColumns, self).__init__(*args, **kwargs)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\viewer.py", line 21, in __init__
self.widget = self.createWidget()
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\gui\viewer.py", line 605, in createWidget
resizeableColumn=2, **self.widgetCreationKeywordArguments())
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\widgets\listctrl.py", line 32, in __init__
columnPopupMenu=columnPopupMenu, *args, **kwargs)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\widgets\itemctrl.py", line 45, in __init__
super(_CtrlWithItemPopupMenu, self).__init__(*args, **kwargs)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\widgets\itemctrl.py", line 216, in __init__
super(_CtrlWithAutoResizeableColumns, self).__init__(*args, **kwargs)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\widgets\itemctrl.py", line 294, in __init__
super(_CtrlWithSortableColumns, self).__init__(*args, **kwargs)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\widgets\itemctrl.py", line 182, in __init__
super(_BaseCtrlWithColumns, self).__init__(*args, **kwargs)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\widgets\itemctrl.py", line 72, in __init__
super(_CtrlWithColumnPopupMenu, self).__init__(*args, **kwargs)
File "c:\Documents and Settings\fniessink\My Documents\taskcoach\taskcoachlib\widgets\itemctrl.py", line 91, in __init__
super(_CtrlWithFileDropTarget, self).__init__(*args, **kwargs)
File "c:\Program Files\Python24\lib\site-packages\wx-2.6-msw-unicode\wx\_controls.py", line 4543, in __init__
newobj = _controls_.new_ListCtrl(*args, **kwargs)
PyAssertionError: C++ assertion "wxAssertFailure" failed in ..\..\src\msw\control.cpp(162): CreateWindowEx("SysListView32", flags=52011049, ex=00000200) failed
----------------------------------------------------------------------
Ran 1658 tests in 29.533s
FAILED (failures=1, errors=2)