@@ -172,20 +172,30 @@ def test_whole_rows(self):
172172 w = self .widget
173173 self .send_signal (w .Inputs .data , self .data , 0 )
174174 self .assertTrue (w .select_rows ) # default value
175- w .controls .select_rows .toggle ()
175+ with excepthook_catch ():
176+ w .controls .select_rows .toggle ()
176177 self .assertFalse (w .select_rows )
177178 w .selected_cols = [0 , 1 ]
178179 w .selected_rows = [0 , 1 , 2 , 3 ]
179180 w .set_selection ()
180181 out = self .get_output (w .Outputs .selected_data )
181182 self .assertEqual (out .domain ,
182183 Domain ([self .data .domain .attributes [0 ]], self .data .domain .class_var ))
183- w .controls .select_rows .toggle ()
184+ with excepthook_catch ():
185+ w .controls .select_rows .toggle ()
184186 out = self .get_output (w .Outputs .selected_data )
185187 self .assertTrue (w .select_rows )
186188 self .assertEqual (out .domain ,
187189 self .data .domain )
188190
191+ def test_show_attribute_labels (self ):
192+ w = self .widget
193+ self .send_signal (w .Inputs .data , self .data , 0 )
194+ self .assertTrue (w .show_attribute_labels ) # default value
195+ with excepthook_catch ():
196+ w .controls .show_attribute_labels .toggle ()
197+ self .assertFalse (w .show_attribute_labels )
198+
189199
190200if __name__ == "__main__" :
191201 unittest .main ()
0 commit comments