mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-09 05:20:08 +01:00
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:
@@ -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'
|
||||
|
||||
|
||||
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user