diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2024-12-16 07:39:50 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2024-12-16 07:39:50 (GMT) |
commit | 1614639e270005a2a44805ac0e3075e735b20f2e (patch) | |
tree | 56560a1fb5d32d2e26626bc0a5069f0ed78d79dd /tests | |
parent | 5da8b16972f6d9ce34c3c200b3acabace9b956f5 (diff) |
Extend the Python API for GObject holes.
Diffstat (limited to 'tests')
-rw-r--r-- | tests/glibext/objhole.py | 9 |
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) |