diff options
author | Christoph Reiter <creiter@src.gnome.org> | 2017-10-22 17:59:17 +0200 |
---|---|---|
committer | Christoph Reiter <creiter@src.gnome.org> | 2017-10-22 17:59:17 +0200 |
commit | 1bf7d2cddcd24f619a268d0af85d7919d72bacba (patch) | |
tree | c7b67ca7b90e3d4b36eae3818aa34e195ca1292d /tests/test_gi.py | |
parent | e502d0097f28e6c65d3d5120230fb428aabbc083 (diff) | |
download | pygobject-1bf7d2cddcd24f619a268d0af85d7919d72bacba.tar.gz |
to_py_array: Properly handle enum array items
It used the fallback path and copied pointers.
Do the same thing we do for integer items instead.
https://bugzilla.gnome.org/show_bug.cgi?id=788890
Diffstat (limited to 'tests/test_gi.py')
-rw-r--r-- | tests/test_gi.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_gi.py b/tests/test_gi.py index 08901267..30729741 100644 --- a/tests/test_gi.py +++ b/tests/test_gi.py @@ -1094,6 +1094,12 @@ class TestArray(unittest.TestCase): self.assertEqual((True, ['hello']), GIMarshallingTests.init_function(['hello', 'world'])) + def test_enum_array_return_type(self): + self.assertEqual(GIMarshallingTests.enum_array_return_type(), + [GIMarshallingTests.ExtraEnum.VALUE1, + GIMarshallingTests.ExtraEnum.VALUE2, + GIMarshallingTests.ExtraEnum.VALUE3]) + class TestGStrv(unittest.TestCase): |