[TIP] pytest xdist raise INTERNALERROR occasionally on Windows 2008r2

Ronny Pfannschmidt Ronny.Pfannschmidt at gmx.de
Wed Aug 22 23:43:09 PDT 2012


Hi Baiju,

that looks like a bug you should report on pytest

the problem with the output always being the same seems to be that
its an list of 50 items and something in the middle is different,
for debugging purposes you might want to employ difflib's SequenceMatcher
to print out the difference of those 2 rather large lists

-- Ronny

On 08/23/2012 07:03 AM, Baiju M wrote:
> Hi,
>
> I run tests on Windows 2008r2, the number of tests is 50.  The test fails with
> a traceback like this:
>
> INTERNALERROR>  Traceback (most recent call last):
> ...
> INTERNALERROR>    File
> "e:\functional_tests\eggs\pytest_xdist-1.8-py2.6.egg\xdist\dsession.py",
> line 201, in pytest_runtestloop
> INTERNALERROR>      self.loop_once()
> INTERNALERROR>    File
> "e:\functional_tests\eggs\pytest_xdist-1.8-py2.6.egg\xdist\dsession.py",
> line 219, in loop_once
> INTERNALERROR>      call(**kwargs)
> INTERNALERROR>    File
> "e:\functional_tests\eggs\pytest_xdist-1.8-py2.6.egg\xdist\dsession.py",
> line 272, in slave_collectionfinish
> INTERNALERROR>      self.sched.init_distribute()
> INTERNALERROR>    File
> "e:\functional_tests\eggs\pytest_xdist-1.8-py2.6.egg\xdist\dsession.py",
> line 132, in init_distribute
> INTERNALERROR>      assert collection == col
> INTERNALERROR>  AssertionError: assert ['XXXXXXXXXXXXXX', ...] ==
> ['XXXXXXXXXXXXXX', ...]
>
> That 'XXXXXXXXXXXXXX' (masked) is same in left and right whatever displayed.
>
> I have pasted the full traceback (masked the actual test) here:
> https://gist.github.com/3432544
> This doesn't happen always.  The test is invoked from Jenkins.  pytest
> version 2.2.3
>
> Let me know, if any other details required.
>
> Regards,
> Baiju M
>
> _______________________________________________
> testing-in-python mailing list
> testing-in-python at lists.idyll.org
> http://lists.idyll.org/listinfo/testing-in-python




More information about the testing-in-python mailing list