tag:help.appveyor.com,2012-11-13:/discussions/problems/22289-pytest-in-ubuntu-1604-finished-with-code-1AppVeyor: Discussion 2019-07-08T18:05:41Ztag:help.appveyor.com,2012-11-13:Comment/470813902019-03-17T17:40:45Z2019-03-17T17:40:45ZPytest in Ubuntu 16.04 finished with code 1<div><p>I don't really know much about the intricacies of python environments but you can see <a href="https://ci.appveyor.com/project/OwenMcDonnell/projecta?fullLog=true#L8">here in this build</a> that the stack construct seems to be working fine.</p>
<p>Maybe you need to forego installing python3 with apt-get and just <a href="https://github.com/Jenyay/outwiker/blob/master/appveyor.yml#L16">install pipenv</a> with <code>python</code> command which is already set to version 3.5.6, as demonstrated in the build i linked to.</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/470813902019-03-17T18:32:03Z2019-03-17T19:20:13ZPytest in Ubuntu 16.04 finished with code 1<div><p>I moved pipenv installing from "init" section to "install" and the Python version has become 3.5.6. But tests still fall for no apparent reason. It seems that the first test in which GUI is created falls.</p>
<p>New build log here - <a href="https://ci.appveyor.com/project/Jenyay/outwiker/builds/23138810">https://ci.appveyor.com/project/Jenyay/outwiker/builds/23138810</a></p></div>Jenyaytag:help.appveyor.com,2012-11-13:Comment/470813902019-03-19T00:19:54Z2019-03-19T00:19:54ZPytest in Ubuntu 16.04 finished with code 1<div><p>What if you try running your tests without the <code>xvfb-run</code> wrapper?</p></div>Owen McDonnelltag:help.appveyor.com,2012-11-13:Comment/470813902019-03-20T19:14:25Z2019-03-20T19:16:27ZPytest in Ubuntu 16.04 finished with code 1<div><p>It turned out that the initial problem was caused by the crash of a third-party library. Without xvfb-run wxPython does not work at server and all GUI tests fall. I run all the tests locally without xvfb-run.</p></div>Jenyay