summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-08-13 10:22:26 +0000
committerGustavo J. A. M. Carneiro <gjc@src.gnome.org>2007-08-13 10:22:26 +0000
commit99b0cae5f74639915775ebf2514ba595475e4400 (patch)
tree2090b8aa0608cacddf48f91471fc45141aedd1f0
parentd646d41e0fc6e8b293fe2f6ef2a4c438afd262a1 (diff)
Add test case for one the problems reported in bug #466082
svn path=/trunk/; revision=693
-rw-r--r--ChangeLog5
-rw-r--r--tests/test_subtype.py8
2 files changed, 13 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 242e19f..7800ae5 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2007-08-13 Gustavo J. A. M. Carneiro <gjc@gnome.org>
+
+ * tests/test_subtype.py (TestSubType.testGetDict): Add unit test
+ exercising a bug when GObject.__dict__ is accessed directly.
+
2007-07-08 Gustavo J. A. M. Carneiro <gjc@gnome.org>
* gobject/gobjectmodule.c (pygobject_functions)
diff --git a/tests/test_subtype.py b/tests/test_subtype.py
index af03b52..a77ea4e 100644
--- a/tests/test_subtype.py
+++ b/tests/test_subtype.py
@@ -259,3 +259,11 @@ class TestSubType(unittest.TestCase):
foo = Foo()
foo.fooprop = 123
+
+ def testGetDict(self):
+ """reported in bug #466082"""
+ class Foo(gobject.GObject):
+ __gtype_name__ = 'Foo'
+ foo = Foo()
+ d = foo.__dict__
+