Commits

Ronny Pfannschmidt  committed 417bc3e

fix some excpetions i noticed with -s

  • Participants
  • Parent commits 980f80e

Comments (0)

Files changed (2)

File pytest_gui/gtkui/runstate.py

         self.file_listing = ObjectList([
             Column('filename'),
         ])
-        self.file_listing.set_visible_func(lambda x: x.interesting)
+        self.file_listing.set_visible_func(
+            #XXX: figure why x is none sometimes
+            lambda x: x is not None and x.interesting,
+        )
         self.widget.add(self.file_listing)
 
     def set_tests(self, test_ids):

File pytest_gui/handler.py

         if item is not None:
             item.report = None
             item.keywords = keywords
-            self.view.update_item(item)
+            self.view.report_collect(item)
 
         else:
             parent = _parent_name(test_id)