summaryrefslogtreecommitdiffstats
path: root/tests
diff options
context:
space:
mode:
authorPaul Pogonyshev <pogonyshev@gmx.net>2008-08-09 15:14:29 +0000
committerPaul Pogonyshev <paulp@src.gnome.org>2008-08-09 15:14:29 +0000
commit6ec9a71b8ae621203fa546b60867f1198bf723bc (patch)
treef9fb7ae8bb14db41689fe1910f38f31e8403b7f8 /tests
parent38848aaa4ffecf6cccf576df496d41f4ce984579 (diff)
downloadpygobject-6ec9a71b8ae621203fa546b60867f1198bf723bc.tar.gz
pygobject-6ec9a71b8ae621203fa546b60867f1198bf723bc.tar.xz
pygobject-6ec9a71b8ae621203fa546b60867f1198bf723bc.zip
Fix to not use `use_default_fallbacks' property (it's new).
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). svn path=/trunk/; revision=934
Diffstat (limited to 'tests')
-rw-r--r--tests/test_gicon.py11
1 files changed, 8 insertions, 3 deletions
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))