7 Commits

Author SHA1 Message Date
James Wettenhall
f5aca9d312 Destroying each FloatCanvas instance before tearDown avoids exceptions like
this:

wx/lib/floatcanvas/FCObjects.py, line 746, in _Draw
    dc.DrawLines(Points)
TypeError: DC.DrawLines(): argument 1 has unexpected type 'numpy.ndarray'

There's a lot of code duplication between test methods in this class.
It might be better to replace each "fccanvas" with "self.fccanvas", and then
do the common tearDown stuff like "self.fccanvas.Destroy()" in one place.
However, this commit aims to make minimal changes, hencing avoiding replacing
all instances of "fccanvas" with "self.fccanvas"
2017-03-23 22:01:06 +11:00
Metallicow
9568103974 Trim trailing space unittests directory 2016-12-05 16:19:11 -06:00
Robin Dunn
bb01dc0d7f Use absolute import of wtc in the unittest modules, instead of depending on them being run as __main__ and getting the folder on the sys.path by default. 2016-06-30 16:49:19 -07:00
Robin Dunn
4f38ee259d Remove imp_unittest 2016-05-07 19:16:28 -07:00
Werner F Bruhin
4b78726c55 - fix typo of FC_EVT_ENTER_WINDOW
- add two missing events
2014-06-03 15:19:30 +02:00
Robin Dunn
0297c02a7e Use an existing bitmap file so tests will pass
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73980 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-14 02:54:05 +00:00
Robin Dunn
a9f3859f3e Floatcanvas docs and test updates from Werner
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73979 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
2013-05-14 02:53:56 +00:00