summaryrefslogtreecommitdiffstats
path: root/tests/samplebinding
diff options
context:
space:
mode:
authorHugo Parente Lima <hugo.pl@gmail.com>2010-07-02 16:26:57 -0300
committerHugo Parente Lima <hugo.pl@gmail.com>2010-07-02 16:32:31 -0300
commit95b44627e2080c25a6fba858b18a68727c064d16 (patch)
tree3cfedabb14f77b04f9ef6292249ade06019c8c8c /tests/samplebinding
parent7a726a6338e80bdfe9a4a926af29176012859f88 (diff)
downloadshiboken-95b44627e2080c25a6fba858b18a68727c064d16.tar.gz
shiboken-95b44627e2080c25a6fba858b18a68727c064d16.tar.xz
shiboken-95b44627e2080c25a6fba858b18a68727c064d16.zip
Add support for static fields.
Reviewer: Marcelo Lira <marcelo.lira@openbossa.org> Luciano Wolf <luciano.wolf@openbossa.org>
Diffstat (limited to 'tests/samplebinding')
-rw-r--r--tests/samplebinding/class_fields_test.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/tests/samplebinding/class_fields_test.py b/tests/samplebinding/class_fields_test.py
index 4578efb2..576e8d62 100644
--- a/tests/samplebinding/class_fields_test.py
+++ b/tests/samplebinding/class_fields_test.py
@@ -117,6 +117,9 @@ class TestAccessingCppFields(unittest.TestCase):
del d
self.assertEqual(getrefcount(o), refcount)
+ def testStaticField(self):
+ self.assertEqual(Derived.staticPrimitiveField, 0)
+
if __name__ == '__main__':
unittest.main()