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