Fix abstract class tests - check for TypeError instead of expected failure

This commit is contained in:
Scott Talbert
2016-09-09 21:25:40 -04:00
parent 78ae39a664
commit 2afff849d5
4 changed files with 14 additions and 14 deletions

View File

@@ -40,9 +40,9 @@ class headerctrl_Tests(wtc.WidgetTestCase):
wx.EVT_HEADER_DRAGGING_CANCELLED
@unittest.expectedFailure # it's an abstract class
def test_headerctrl2(self):
hc = wx.HeaderCtrl(self.frame)
with self.assertRaises(TypeError):
hc = wx.HeaderCtrl(self.frame)
def test_headerctrl3(self):
hc = wx.HeaderCtrlSimple()