diff options
author | Arjan Molenaar <gaphor@gmail.com> | 2021-08-25 21:53:59 +0200 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2022-03-28 06:47:29 +0200 |
commit | 26dfaaa934f98141da3ac22dfb6d45f20757bea5 (patch) | |
tree | a5dc1311f59ff8783f25f28672a7568be17e1cfb /tests | |
parent | 2d3324f409662895b60ce9a9ed10a3cd0aaa410e (diff) | |
download | pygobject-26dfaaa934f98141da3ac22dfb6d45f20757bea5.tar.gz |
Instead of printing an error, raise an exception
Diffstat (limited to 'tests')
-rw-r--r-- | tests/test_gtype_instance.py | 8 |
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") |