mirror of
https://github.com/wxWidgets/Phoenix.git
synced 2026-01-05 11:30:06 +01:00
Fix abstract class tests - check for TypeError instead of expected failure
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user