summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorChristoph Reiter <reiter.christoph@gmail.com>2019-01-19 13:43:28 +0100
committerChristoph Reiter <reiter.christoph@gmail.com>2019-01-19 13:43:28 +0100
commitb66e964ec1b27d5786d2e2276d18764df6a06e6c (patch)
tree1a4f802740e6694b68fbc949b6d34a273c1213e4 /tests
parent6c69fc7b582ec1fd3faef4de3fade9a0cb7f8c05 (diff)
downloadpygobject-b66e964ec1b27d5786d2e2276d18764df6a06e6c.tar.gz
Value.set_value: allow None for TYPE_STRING
set_string() allows it too
Diffstat (limited to 'tests')
-rw-r--r--tests/test_overrides_gobject.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_overrides_gobject.py b/tests/test_overrides_gobject.py
index 47759b41..e62a27fd 100644
--- a/tests/test_overrides_gobject.py
+++ b/tests/test_overrides_gobject.py
@@ -222,8 +222,8 @@ def test_value_string():
assert v.get_value() == u"quux"
assert isinstance(v.get_value(), str)
- with pytest.raises(TypeError):
- v.set_value(None)
+ v.set_value(None)
+ assert v.get_value() is None
def test_value_pyobject():