From 5204b0f73993fb020670215ff6479247c64801cc Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sun, 2 Oct 2011 05:37:33 +0000 Subject: [PATCH] Switch to using wtc.WidgetTestCase so there is a wx.App while this test is run git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69279 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- unittests/test_colour.py | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/unittests/test_colour.py b/unittests/test_colour.py index 88452112..e565183f 100644 --- a/unittests/test_colour.py +++ b/unittests/test_colour.py @@ -1,13 +1,10 @@ import imp_unittest, unittest import wx - +import wtc #--------------------------------------------------------------------------- -class Colour(unittest.TestCase): - def setUp(self): - if hasattr(wx, 'InitializeStockLists'): - wx.InitializeStockLists() # switch to wx.App once we have that class working +class Colour(wtc.WidgetTestCase): def test_default_ctor(self): c = wx.Colour()