summaryrefslogtreecommitdiffstats
path: root/tests/test_interface.py
diff options
context:
space:
mode:
authorJohan Dahlin <johan@gnome.org>2008-07-26 08:46:07 +0000
committerJohan Dahlin <johan@src.gnome.org>2008-07-26 08:46:07 +0000
commit7079b546e06dd77b61cd1ba4692a077a85b9e033 (patch)
treeb505c4318cc8b5c7eed6251e0a008de42e0113e7 /tests/test_interface.py
parentb94d79214498b07abc22e676897c8314cc386c7c (diff)
downloadpygobject-7079b546e06dd77b61cd1ba4692a077a85b9e033.tar.gz
pygobject-7079b546e06dd77b61cd1ba4692a077a85b9e033.tar.xz
pygobject-7079b546e06dd77b61cd1ba4692a077a85b9e033.zip
Run pyflakes on the testsuite, remove unused imports and reorganize
2008-07-26 Johan Dahlin <johan@gnome.org> * tests/common.py: * tests/test_conversion.py: * tests/test_enum.py: * tests/test_interface.py: * tests/test_option.py: * tests/test_source.py: * tests/test_subprocess.py: * tests/test_subtype.py: * tests/test_thread.py: * tests/test_unknown.py: Run pyflakes on the testsuite, remove unused imports and reorganize others. svn path=/trunk/; revision=859
Diffstat (limited to 'tests/test_interface.py')
-rw-r--r--tests/test_interface.py9
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)