[gnome-settings-daemon] power: Fix GLib.file_get_contents() usage in test
- From: Bastien Nocera <hadess src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-settings-daemon] power: Fix GLib.file_get_contents() usage in test
- Date: Wed, 17 Apr 2013 14:12:13 +0000 (UTC)
commit e477570e2130e022d25b97fc48df912e6a92b69b
Author: Bastien Nocera <hadess hadess net>
Date: Wed Apr 17 16:11:50 2013 +0200
power: Fix GLib.file_get_contents() usage in test
plugins/power/test.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/plugins/power/test.py b/plugins/power/test.py
index 602b272..bab0fdb 100755
--- a/plugins/power/test.py
+++ b/plugins/power/test.py
@@ -169,7 +169,7 @@ class PowerPluginTest(gsdtestcase.GSDTestCase):
return self.obj_session_presence_props.Get('org.gnome.SessionManager.Presence', 'status')
def get_brightness(self):
- (success, ret, length) = GLib.file_get_contents ('GSD_MOCK_brightness')
+ (success, ret) = GLib.file_get_contents ('GSD_MOCK_brightness')
return int(ret)
def set_has_external_monitor(self, external):
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]