diff options
author | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2018-12-14 00:00:00 +0000 |
---|---|---|
committer | Tomasz Miąsko <tomasz.miasko@gmail.com> | 2018-12-14 13:55:05 +0100 |
commit | 05a59a1cdf8774eb351ea7ede186c5be0480d4f7 (patch) | |
tree | faa88b34739f996c70ce40e790094065d942b768 /tests/test_repository.py | |
parent | eab86dd66bcaee14d91f74f3e05e73f61f944d63 (diff) | |
download | pygobject-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.py | 1 |
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') |