summaryrefslogtreecommitdiff
path: root/tests/test_everything.py
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2018-02-16 09:59:31 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2018-02-16 09:59:31 +0100
commit91a25c2aa1776e5e5757dc317a798615c31b3854 (patch)
treee95a1b50ff94bb194b316b277cc367dad3511952 /tests/test_everything.py
parente00e38f9c44568f7fab643a069f86c576011ddcc (diff)
downloadpygobject-91a25c2aa1776e5e5757dc317a798615c31b3854.tar.gz
tests: Add a test for a out transfer-none boxed array
Makes sure we copy the array items as well.
Diffstat (limited to 'tests/test_everything.py')
-rw-r--r--tests/test_everything.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/test_everything.py b/tests/test_everything.py
index ce79cc2f..ee852098 100644
--- a/tests/test_everything.py
+++ b/tests/test_everything.py
@@ -1160,6 +1160,12 @@ class TestBoxed(unittest.TestCase):
self.assertEqual(obj.refcount, 1)
del obj
+ def test_array_fixed_boxed_none_out(self):
+ arr = Everything.test_array_fixed_boxed_none_out()
+ assert len(arr) == 2
+ assert arr[0].refcount == 2
+ assert arr[1].refcount == 2
+
class TestTortureProfile(unittest.TestCase):
def test_torture_profile(self):