diff options
author | Christoph Reiter <reiter.christoph@gmail.com> | 2020-11-15 13:32:30 +0100 |
---|---|---|
committer | Christoph Reiter <reiter.christoph@gmail.com> | 2020-11-15 13:32:30 +0100 |
commit | 6033ab41cdf3ec8d7e689e2a3ea832ed5dfdcf8b (patch) | |
tree | ba662b5a958ac6b6990435d52070c6632a3247ec | |
parent | ba67301beea4b4a7a19485f68215b0f0d52888be (diff) | |
download | pygobject-6033ab41cdf3ec8d7e689e2a3ea832ed5dfdcf8b.tar.gz |
tests: fix tests with glib master
GFileIcon asserts that it gets a file now:
https://gitlab.gnome.org/GNOME/glib/-/commit/e2fbb74301
-rw-r--r-- | tests/test_gobject.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/tests/test_gobject.py b/tests/test_gobject.py index 77d788ad..f5a65bba 100644 --- a/tests/test_gobject.py +++ b/tests/test_gobject.py @@ -833,7 +833,8 @@ def test_list_properties(): assert list_props("GFileIcon") == list_props(Gio.FileIcon) assert list_props(Gio.FileIcon.__gtype__) == list_props(Gio.FileIcon) - assert list_props(Gio.FileIcon()) == list_props(Gio.FileIcon) + assert list_props(Gio.FileIcon( + file=Gio.File.new_for_path('.'))) == list_props(Gio.FileIcon) for obj in [Gio.ActionEntry, Gio.DBusError, 0, object()]: with pytest.raises(TypeError): |