<div dir="ltr"><div>I don't know the code base you're working on. I think what you need to do is to narrow down which test that produces that error. You can split the tests like binary search or whatever method you like (running the tests for each package etc). In InaSAFE, for testing purposes, there's a handy function called get_qgis_app that will instantiate a QgsApp. It is used in the tests which also to prevent that error. See here for the usage of that function <a href="https://github.com/AIFDR/inasafe/search?utf8=%E2%9C%93&q=get_qgis_app">https://github.com/AIFDR/inasafe/search?utf8=%E2%9C%93&q=get_qgis_app</a><br><br></div>Regards<br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jun 24, 2015 at 5:01 PM, Tom Chadwin <span dir="ltr"><<a href="mailto:tom.chadwin@nnpa.org.uk" target="_blank">tom.chadwin@nnpa.org.uk</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">So Google has told me repeatedly. My issues are:<br>
<br>
- I have not previously done this because the plugin works fine in QGIS, and<br>
this issue has only shown up in tests<br>
<br>
- I don't know how (or where) to instantiate QApplication (or<br>
QgsApplication?)<br>
<br>
<br>
<br>
--<br>
View this message in context: <a href="http://osgeo-org.1560.x6.nabble.com/Using-TravisCI-integration-in-Github-for-QGIS-Python-plugin-tp5207646p5212636.html" rel="noreferrer" target="_blank">http://osgeo-org.1560.x6.nabble.com/Using-TravisCI-integration-in-Github-for-QGIS-Python-plugin-tp5207646p5212636.html</a><br>
<div class="HOEnZb"><div class="h5">Sent from the Quantum GIS - Developer mailing list archive at Nabble.com.<br>
_______________________________________________<br>
Qgis-developer mailing list<br>
<a href="mailto:Qgis-developer@lists.osgeo.org">Qgis-developer@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/qgis-developer" rel="noreferrer" target="_blank">http://lists.osgeo.org/mailman/listinfo/qgis-developer</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br><div class="gmail_signature"><div dir="ltr"><div><p><b><span style="font-size:11.0pt;font-family:"Calibri","sans-serif";color:#1f497d">-------------------</span></b></p><b>Akbar Gumbira<br></b></div><b>Software Engineer</b><br><b>Geospatial, NLP, Data Mining, Machine Learning, Artificial Intelligence</b></div></div>
</div>