[pygobject] tests: Don't use deprecated positional argument for Gio.Settings schema
- From: Simon Feltman <sfeltman src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [pygobject] tests: Don't use deprecated positional argument for Gio.Settings schema
- Date: Mon, 26 May 2014 08:54:44 +0000 (UTC)
commit dbdc662b5743bb54fcc3621db775a6e948ec360c
Author: Simon Feltman <sfeltman src gnome org>
Date: Mon May 26 01:53:14 2014 -0700
tests: Don't use deprecated positional argument for Gio.Settings schema
tests/test_gio.py | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/tests/test_gio.py b/tests/test_gio.py
index 57ab013..986d6dc 100644
--- a/tests/test_gio.py
+++ b/tests/test_gio.py
@@ -40,7 +40,7 @@ class TestGio(unittest.TestCase):
class TestGSettings(unittest.TestCase):
def setUp(self):
- self.settings = Gio.Settings('org.gnome.test')
+ self.settings = Gio.Settings(schema='org.gnome.test')
# we change the values in the tests, so set them to predictable start
# value
self.settings.reset('test-string')
@@ -78,7 +78,7 @@ class TestGSettings(unittest.TestCase):
self.assertEqual(self.settings.get_property('path'), '/tests/')
# optional constructor arguments
- with_path = Gio.Settings('org.gnome.nopathtest', path='/mypath/')
+ with_path = Gio.Settings(schema='org.gnome.nopathtest', path='/mypath/')
self.assertEqual(with_path.get_property('path'), '/mypath/')
self.assertEqual(with_path['np-int'], 42)
@@ -115,7 +115,7 @@ class TestGSettings(unittest.TestCase):
self.assertRaises(KeyError, self.settings.__setitem__, 'unknown', 'moo')
def test_empty(self):
- empty = Gio.Settings('org.gnome.empty', path='/tests/')
+ empty = Gio.Settings(schema='org.gnome.empty', path='/tests/')
self.assertEqual(len(empty), 0)
self.assertEqual(bool(empty), True)
self.assertEqual(empty.keys(), [])
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]