summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--ChangeLog5
-rw-r--r--tests/test_gicon.py11
2 files changed, 13 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 9f0b377..3c9db0a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,10 @@
2008-08-09 Paul Pogonyshev <pogonyshev@gmx.net>
+ * tests/test_gicon.py (TestThemedIcon.test_constructor): Fix to
+ not use `use_default_fallbacks' property (it's new).
+
+2008-08-09 Paul Pogonyshev <pogonyshev@gmx.net>
+
Bug 546135 – GIcon and implementations improvements
* gio/gio.defs (g_file_icon_new): Change from method of gio.File
diff --git a/tests/test_gicon.py b/tests/test_gicon.py
index b71105d..734518e 100644
--- a/tests/test_gicon.py
+++ b/tests/test_gicon.py
@@ -74,17 +74,22 @@ class TestThemedIcon(unittest.TestCase):
self.icon = gio.ThemedIcon("open")
def test_constructor(self):
+ have_use_default_fallbacks = ('use_default_fallbacks'
+ in gio.ThemedIcon.props.__members__)
icon = gio.ThemedIcon('foo')
self.assertEquals(['foo'], icon.props.names)
- self.assert_(not icon.props.use_default_fallbacks)
+ self.assert_(not have_use_default_fallbacks
+ or not icon.props.use_default_fallbacks)
icon = gio.ThemedIcon(['foo', 'bar', 'baz'])
self.assertEquals(['foo', 'bar', 'baz'], icon.props.names)
- self.assert_(not icon.props.use_default_fallbacks)
+ self.assert_(not have_use_default_fallbacks
+ or not icon.props.use_default_fallbacks)
icon = gio.ThemedIcon('xxx-yyy-zzz', True)
self.assertEquals(['xxx-yyy-zzz', 'xxx-yyy', 'xxx'], icon.props.names)
- self.assert_(icon.props.use_default_fallbacks)
+ self.assert_(not have_use_default_fallbacks
+ or icon.props.use_default_fallbacks)
def test_constructor_illegals(self):
self.assertRaises(TypeError, lambda: gio.ThemedIcon(42))