From 4d5b097244b5b6883f3405d804510a26027d984b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Manuel=20Qui=C3=B1ones?= Date: Fri, 21 Sep 2012 11:08:31 -0300 Subject: Fix ConfigRec.set_model testcase for pygobject MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Don't do a new Xkl.ConfigRec before printing the output. Signed-off-by: Manuel QuiƱones --- tests/test_gi.py | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tests/test_gi.py b/tests/test_gi.py index a7337d1..66be519 100755 --- a/tests/test_gi.py +++ b/tests/test_gi.py @@ -108,10 +108,6 @@ original_model = rec.model rec.set_model("pc105") print('Curent configuration:') -rec = Xkl.ConfigRec() -if not rec.get_from_server(engine): - print('Failed to get configuration from server') - sys.exit(1) print(' Model:', rec.model) print(' Layouts:', rec.layouts) print(' Variants:', rec.variants) @@ -121,10 +117,6 @@ print('Changing back to original model...') rec.set_model(original_model) print('Curent configuration:') -rec = Xkl.ConfigRec() -if not rec.get_from_server(engine): - print('Failed to get configuration from server') - sys.exit(1) print(' Model:', rec.model) print(' Layouts:', rec.layouts) print(' Variants:', rec.variants) -- cgit v1.2.1