Merge lp:~cypressyew/checkbox/fix-pygiwarning-camera-test into lp:checkbox

Proposed by Po-Hsu Lin
Status: Rejected
Rejected by: Sylvain Pineau
Proposed branch: lp:~cypressyew/checkbox/fix-pygiwarning-camera-test
Merge into: lp:checkbox
Diff against target: 12 lines (+2/-0)
1 file modified
providers/plainbox-provider-checkbox/bin/camera_test (+2/-0)
To merge this branch: bzr merge lp:~cypressyew/checkbox/fix-pygiwarning-camera-test
Reviewer Review Type Date Requested Status
Checkbox Developers Pending
Review via email: mp+291476@code.launchpad.net

Description of the change

Fix the pygiwarning message when running camera tests.
Tested on Xenial and Precise without causing any problem.

To post a comment you must log in.
Revision history for this message
Sylvain Pineau (sylvain-pineau) wrote :

Unmerged revisions

4298. By Po-Hsu Lin

p-p-c: fix for PyGIWarning messages.

Add gi.require_version to fix the PyGIWarning message for camera tests.

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'providers/plainbox-provider-checkbox/bin/camera_test'
2--- providers/plainbox-provider-checkbox/bin/camera_test 2016-02-13 13:21:18 +0000
3+++ providers/plainbox-provider-checkbox/bin/camera_test 2016-04-11 04:14:59 +0000
4@@ -38,6 +38,8 @@
5 import sys
6 import time
7
8+import gi
9+gi.require_version('Gst', '1.0')
10 from gi.repository import GObject
11 from glob import glob
12 from subprocess import check_call, CalledProcessError, STDOUT

Subscribers

People subscribed via source and target branches