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/test_gobject.py | |
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/test_gobject.py')
-rw-r--r-- | tests/test_gobject.py | 12 |
1 files changed, 12 insertions, 0 deletions
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') |