summaryrefslogtreecommitdiff
path: root/tests/glibext
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2024-12-16 07:39:50 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2024-12-16 07:39:50 (GMT)
commit1614639e270005a2a44805ac0e3075e735b20f2e (patch)
tree56560a1fb5d32d2e26626bc0a5069f0ed78d79dd /tests/glibext
parent5da8b16972f6d9ce34c3c200b3acabace9b956f5 (diff)
Extend the Python API for GObject holes.
Diffstat (limited to 'tests/glibext')
-rw-r--r--tests/glibext/objhole.py9
1 files changed, 9 insertions, 0 deletions
diff --git a/tests/glibext/objhole.py b/tests/glibext/objhole.py
index 09bd8f5..6a7c2e8 100644
--- a/tests/glibext/objhole.py
+++ b/tests/glibext/objhole.py
@@ -20,3 +20,12 @@ class TestWorks(ChrysalideTestCase):
obj.extra = 0x00123000
self.assertEqual(obj.extra, 0x00123000)
+
+
+ def testRservedBits(self):
+ """Check space leaved as available by the GLib."""
+
+ obj = ThickObject()
+
+ self.assertTrue(obj._GOBJECT_RESERVED_EXTRA_BITS > 0)
+ self.assertTrue(obj._GOBJECT_RESERVED_EXTRA_BITS < 32)