[TIP] Incorrect return code py.test on Windows/Jenkins ?

Pere Martir pere.martir4 at gmail.com
Mon Mar 21 10:44:55 PDT 2011


The return code of py.test on Windows makes Jenkins to consider the
build "failed" if there is any failed testcase in the generated JUnit
XML. I have to put a superfluous command after py.test to make Jenkins
not to consider it as a failed build.

Jenkins: 1.401.
platform win32 -- Python 2.6.4 -- pytest-2.0.3.dev
(I can reproduce it on 2.0.1 and 2.0.2 as well)



More information about the testing-in-python mailing list