pygobject3/tests-fix-tests-with-glib-master.patch

29 lines
1023 B
Diff

From 6033ab41cdf3ec8d7e689e2a3ea832ed5dfdcf8b Mon Sep 17 00:00:00 2001
From: Christoph Reiter <reiter.christoph@gmail.com>
Date: Sun, 15 Nov 2020 13:32:30 +0100
Subject: [PATCH] tests: fix tests with glib master
GFileIcon asserts that it gets a file now:
https://gitlab.gnome.org/GNOME/glib/-/commit/e2fbb74301
---
tests/test_gobject.py | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
diff --git a/tests/test_gobject.py b/tests/test_gobject.py
index 77d788a..f5a65bb 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):
--
1.8.3.1