summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_subtype.py17
1 files changed, 17 insertions, 0 deletions
diff --git a/tests/test_subtype.py b/tests/test_subtype.py
index b74c4ff..6fce3a0 100644
--- a/tests/test_subtype.py
+++ b/tests/test_subtype.py
@@ -270,3 +270,20 @@ class TestSubType(unittest.TestCase):
foo = Foo()
d = foo.__dict__
+ def test_gtk_buildable_virtual_method(self):
+ """Bug 566571."""
+
+ # Currently the bug is not solved, so skip the test.
+ return
+
+ class CustomDialog(gtk.Dialog):
+ __gtype_name__ = 'CustomDialog'
+ def do_parser_finished(self, build):
+ self.built = True
+
+ builder = gtk.Builder()
+ builder.add_from_string('<interface><object class="CustomDialog" id="main"/></interface>')
+ dialog = builder.get_object('main')
+
+ self.assert_(isinstance(dialog, gtk.Buildable))
+ self.assert_(hasattr(dialog, 'built'))