Commits

Anonymous committed 0a8aace

[svn r2604] test to cut and paste the toplevel for each widget

Comments (0)

Files changed (1)

tests/test_widgets.py

         self._assert_properties(test_widget, ref_properties)
         self._assert_gladefiles(test_name, ref_file)
 
+        # Cut 'n' paste the toplevel since this seem to have been the
+        # source of a few bugs (but first we have to undo the previous
+        # changes)
+        mgr.undo(self.project)
+        mgr.undo(self.project)
+        clipboard.cut(window)
+        clipboard.paste(None, self.project)
 
 
 # XXX These should never be part of the test. Ugly hack.
 SKIPPED = {
     'GtkFileChooserDialog': ('Seg fault in Fedora Core 6 when doing '
                              'clipboard.cut(toplevel) with this message: '
-                             'TypeError: Cannot create a consistent method resolutionorder (MRO) for bases Editable, GInterface, CellEditable. Segmentation fault')
+                             'TypeError: Cannot create a consistent method resolutionorder (MRO) for bases Editable, GInterface, CellEditable. Segmentation fault'),
+    'GtkTreeView': 'Crash when cutting and pasting the parent. See bug #407617',
     }
 
 if gtk.pygtk_version < (2, 8, 0):