summaryrefslogtreecommitdiff
path: root/tests/test_repository.py
diff options
context:
space:
mode:
authorTomasz Miąsko <tomasz.miasko@gmail.com>2018-12-14 00:00:00 +0000
committerTomasz Miąsko <tomasz.miasko@gmail.com>2018-12-14 13:55:05 +0100
commit05a59a1cdf8774eb351ea7ede186c5be0480d4f7 (patch)
treefaa88b34739f996c70ce40e790094065d942b768 /tests/test_repository.py
parenteab86dd66bcaee14d91f74f3e05e73f61f944d63 (diff)
downloadpygobject-05a59a1cdf8774eb351ea7ede186c5be0480d4f7.tar.gz
pygi-info: wrap g_union_info_get_alignment()
Aligment is useful when validating ABI against C. It is already wrapped for structs, wrap it for unions as well.
Diffstat (limited to 'tests/test_repository.py')
-rw-r--r--tests/test_repository.py1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/test_repository.py b/tests/test_repository.py
index de2e5c95..9be79486 100644
--- a/tests/test_repository.py
+++ b/tests/test_repository.py
@@ -203,6 +203,7 @@ class Test(unittest.TestCase):
self.assertTrue(isinstance(info.get_fields(), abc.Iterable))
self.assertTrue(isinstance(info.get_methods(), abc.Iterable))
self.assertTrue(isinstance(info.get_size(), int))
+ self.assertTrue(isinstance(info.get_alignment(), int))
def test_type_info(self):
func_info = repo.find_by_name('GIMarshallingTests', 'array_fixed_out_struct')