Set the log target to use stderr so it won't try making log dialogs while tests are running (and the UI might not be in enough of a fully initialized state for them to work without asserting or crashing.)

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@73814 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2013-04-13 01:46:18 +00:00
parent bea3258b0b
commit 596cb9b484
2 changed files with 2 additions and 1 deletions

View File

@@ -65,7 +65,7 @@ class ConfigTests(wtc.WidgetTestCase):
os.remove(name)
def test_Config4(self): # disabled for now...
def test_Config4(self):
null = wx.LogNull()
name = cfgFilename + '_4'

View File

@@ -14,6 +14,7 @@ class WidgetTestCase(unittest.TestCase):
"""
def setUp(self):
self.app = wx.App()
wx.Log.SetActiveTarget(wx.LogStderr())
self.frame = wx.Frame(None, title='WTC: '+self.__class__.__name__)
self.frame.Show()