diff options
Diffstat (limited to 'tests/test_interface.py')
-rw-r--r-- | tests/test_interface.py | 9 |
1 files changed, 3 insertions, 6 deletions
diff --git a/tests/test_interface.py b/tests/test_interface.py index 4413d64..d959791 100644 --- a/tests/test_interface.py +++ b/tests/test_interface.py @@ -1,13 +1,11 @@ import unittest -import testmodule from common import gobject, testhelper -from gobject import GObject, GInterface -import gobject GUnknown = gobject.type_from_name("TestUnknown") Unknown = GUnknown.pytype + class MyUnknown(Unknown, testhelper.Interface): some_property = gobject.property(type=str) @@ -18,19 +16,18 @@ class MyUnknown(Unknown, testhelper.Interface): def do_iface_method(self): self.called = True Unknown.do_iface_method(self) - gobject.type_register(MyUnknown) + class MyObject(gobject.GObject, testhelper.Interface): some_property = gobject.property(type=str) def __init__(self): - GObject.__init__(self) + gobject.GObject.__init__(self) self.called = False def do_iface_method(self): self.called = True - gobject.type_register(MyObject) |