Re: [pytest-dev] pytest.internal test failures

2014-09-04 Thread Anatoly Bubenkov
execnet==1.2.0 pytest==2.6.1 py==1.4.23 pytest-xdist==1.10 but our tests don't use gevent On 4 September 2014 10:10, Srinath wrote: > which execnet version do you use? 1.1 or 1.2? with 1.2 py.test -n > doesn't even run. > > > [image: Srinath GS on about.me] > > Srinath GS > about.me/srinathgs

Re: [pytest-dev] pytest.internal test failures

2014-09-04 Thread holger krekel
On Thu, Sep 04, 2014 at 13:40 +0530, Srinath wrote: > which execnet version do you use? 1.1 or 1.2? with 1.2 py.test -n > doesn't even run. py.test -n works fine with execnet-1.2 for me and many others (as long as only OS threading is involved). However, execnet-gevent/greenlet support is relati

Re: [pytest-dev] pytest.internal test failures

2014-09-04 Thread Srinath
which execnet version do you use? 1.1 or 1.2? with 1.2 py.test -n doesn't even run. [image: Srinath GS on about.me] Srinath GS about.me/srinathgs http://srinath.im I write code @ Alamut Srinath G S On Thu, Sep 4, 2014 at 1:34 PM, Anatoly Bubenkov wrote: > so tha

Re: [pytest-dev] pytest.internal test failures

2014-09-04 Thread Anatoly Bubenkov
so that might very well be the issue - gevent does the patching of the threading module which is in use of the execnet... try to NOT use gevent patching but just use it directly (by importing and using it's attributes), eg avoild .patch_all On 4 September 2014 10:02, Srinath wrote: > We just ru

Re: [pytest-dev] pytest.internal test failures

2014-09-04 Thread Srinath
We just run py.test -n . pytest automatically picks up the tests and then run. some of the unit tests import code from components. Components do gevent monkey patch. so, execnet although uses threading, the locking stuff gets overridden by gevent. Hope this clarifies the use case. [image: Srinath

Re: [pytest-dev] pytest.internal test failures

2014-09-04 Thread Anatoly Bubenkov
I mean the mode of the execnet, do you use threads there? On 4 September 2014 09:10, Srinath wrote: > Hi Anatoly, > > We use a lot of greenlets in our code. Unit Tests import them. They get > monkey patched. So, we really can't use only threading. > > > [image: Srinath GS on about.me] > > Srina

Re: [pytest-dev] pytest.internal test failures

2014-09-04 Thread Srinath
Hi Anatoly, We use a lot of greenlets in our code. Unit Tests import them. They get monkey patched. So, we really can't use only threading. [image: Srinath GS on about.me] Srinath GS about.me/srinathgs http://srinath.im I write code @ Alamut Srinath G S On Thu, Se