diff options
author | Johan Dahlin <johan@gnome.org> | 2008-04-15 18:12:52 +0000 |
---|---|---|
committer | Johan Dahlin <johan@src.gnome.org> | 2008-04-15 18:12:52 +0000 |
commit | 1f3857e7422a757c281e87fb50b031810ea4a4f4 (patch) | |
tree | 5d3f1499029dfed8b86652c72b6a8c9378efc8b7 /tests | |
parent | 04494c2276bbc811dde29885195e640dc6eb2d0c (diff) | |
download | pygobject-1f3857e7422a757c281e87fb50b031810ea4a4f4.tar.gz pygobject-1f3857e7422a757c281e87fb50b031810ea4a4f4.tar.xz pygobject-1f3857e7422a757c281e87fb50b031810ea4a4f4.zip |
Set gobject.GObject.__module__ to gobject._gobject, this helps pylint to
2008-04-15 Johan Dahlin <johan@gnome.org>
* gobject/gobjectmodule.c (init_gobject): Set
gobject.GObject.__module__ to gobject._gobject, this
helps pylint to check public methods of GObject subclasses
* tests/Makefile.am (tests):
* tests/test_gobject.py (TestGObjectAPI.testGObjectModule):
Add a test for this
(#523821, Simon Schampijer)
svn path=/trunk/; revision=777
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 1 | ||||
-rw-r--r-- | tests/test_gobject.py | 12 |
2 files changed, 13 insertions, 0 deletions
diff --git a/tests/Makefile.am b/tests/Makefile.am index 3b05018..6d0c51a 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -24,6 +24,7 @@ testhelper_la_SOURCES = \ tests = \ test_conversion.py \ test_enum.py \ + test_gobject.py \ test_gtype.py \ test_interface.py \ test_mainloop.py \ diff --git a/tests/test_gobject.py b/tests/test_gobject.py new file mode 100644 index 0000000..34ba094 --- /dev/null +++ b/tests/test_gobject.py @@ -0,0 +1,12 @@ +# -*- Mode: Python -*- + +import unittest + +from common import gobject + + +class TestGObjectAPI(unittest.TestCase): + def testGObjectModule(self): + obj = gobject.GObject() + self.assertEquals(obj.__module__, + 'gobject._gobject') |