summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorArjan Molenaar <gaphor@gmail.com>2021-08-25 21:53:59 +0200
committerChristoph Reiter <reiter.christoph@gmail.com>2022-03-28 06:47:29 +0200
commit26dfaaa934f98141da3ac22dfb6d45f20757bea5 (patch)
treea5dc1311f59ff8783f25f28672a7568be17e1cfb /tests
parent2d3324f409662895b60ce9a9ed10a3cd0aaa410e (diff)
downloadpygobject-26dfaaa934f98141da3ac22dfb6d45f20757bea5.tar.gz
Instead of printing an error, raise an exception
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gtype_instance.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/test_gtype_instance.py b/tests/test_gtype_instance.py
new file mode 100644
index 00000000..a2f7eec5
--- /dev/null
+++ b/tests/test_gtype_instance.py
@@ -0,0 +1,8 @@
+
+import pytest
+from gi.repository import Regress
+
+
+def test_fundamental_type_instantiation_fails():
+ with pytest.raises(TypeError, match="No means to translate argument or return value for 'RegressTestFundamentalSubObject'"):
+ Regress.TestFundamentalSubObject.new("data")