From 596cb9b484870064799a535d9c609dfc4bb7a2dd Mon Sep 17 00:00:00 2001 From: Robin Dunn Date: Sat, 13 Apr 2013 01:46:18 +0000 Subject: [PATCH] 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 --- unittests/test_config.py | 2 +- unittests/wtc.py | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/unittests/test_config.py b/unittests/test_config.py index c0dc0b57..a5ebe8e0 100644 --- a/unittests/test_config.py +++ b/unittests/test_config.py @@ -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' diff --git a/unittests/wtc.py b/unittests/wtc.py index 8dd875ef..ba7c9d08 100644 --- a/unittests/wtc.py +++ b/unittests/wtc.py @@ -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()