[wxPython] core dump with wxPython 2.3.3.1 and pyunit

Bryan Muir wrote:

On a system that has the same setup but with wxPython 2.3.2.1, the above
test case works fine. After upgrading to wxPython 2.3.3.1, I get a core
dump when running this test. The other interesting thing to note is that
the about box works fine in our application, and when it is run from a
command line via the old "If __name__ == '__main__'". The only problem
appears to be when it is creates through pyunit.

Because a wxApp object hasn't been created. wxGTK probably has something that gets initialized when the app is created that is needed by wxBitmap. (I've fixed this once before, but new code has been added since then.) Just create a wxPySimpleApp in your test case before you make the dialog, and then call app.MainLoop when it is done so the app can clean itself up.

ยทยทยท

--
Robin Dunn
Software Craftsman
http://wxPython.org Java give you jitters? Relax with wxPython!