summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
Diffstat (limited to 'tests')
-rw-r--r--tests/test_signal.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/test_signal.py b/tests/test_signal.py
index 99bb45b..6c41ece 100644
--- a/tests/test_signal.py
+++ b/tests/test_signal.py
@@ -2,6 +2,7 @@
import gc
import unittest
+import sys
from common import gobject, testhelper
@@ -364,5 +365,19 @@ else:
print '** WARNING: LIBFFI disabled, not testing'
print
+# Test for 374653
+class TestPyGValue(unittest.TestCase):
+ def testNoneNULLBoxedConversion(self):
+ class C(gobject.GObject):
+ __gsignals__ = dict(my_boxed_signal=(
+ gobject.SIGNAL_RUN_LAST,
+ gobject.type_from_name('GStrv'), ()))
+
+ obj = C()
+ obj.connect('my-boxed-signal', lambda obj: None)
+ sys.last_type = None
+ obj.emit('my-boxed-signal')
+ assert not sys.last_type
+
if __name__ == '__main__':
unittest.main()