unittest updates and new test modules

git-svn-id: https://svn.wxwidgets.org/svn/wx/wxPython/Phoenix/trunk@69095 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
Robin Dunn
2011-09-15 16:16:21 +00:00
parent 7d7b8b77b8
commit a548f7224d
24 changed files with 454 additions and 48 deletions

View File

@@ -1,4 +1,4 @@
import unittest2
import imp_unittest, unittest
import wx
##import os; print 'PID:', os.getpid(); raw_input('Ready to start, press enter...')
@@ -6,7 +6,7 @@ import warnings
#---------------------------------------------------------------------------
class App(unittest2.TestCase):
class App(unittest.TestCase):
def test_App(self):
app = wx.App()
@@ -47,7 +47,7 @@ class App(unittest2.TestCase):
# wx.PySimpleApp is supposed to be deprecated, make sure it is.
with warnings.catch_warnings():
warnings.simplefilter("error")
with self.assertRaises(DeprecationWarning):
with self.assertRaises(wx.wxPyDeprecationWarning):
app = wx.PySimpleApp()
@@ -71,4 +71,4 @@ class App(unittest2.TestCase):
if __name__ == '__main__':
unittest2.main()
unittest.main()