[py-dev] INTERNAL ERROR doesn't give a good exit code?

2012-07-06 Thread John Anderson
I'm running my builds on travis-ci and I had some bad imports and it threw an INTERNAL ERROR on py.test, but gave an exit code 0 so the build doesn't fail.. Any way to fix this? = test session starts == 626platform linux2 -- Python 2.7.2

Re: [py-dev] INTERNAL ERROR doesn't give a good exit code?

2012-07-06 Thread John Anderson
Turns out it was the documented setup.py PyTestCommand I found: class PyTest(TestCommand): def finalize_options(self): TestCommand.finalize_options(self) self.test_args = [] self.test_suite = True def run_tests(self): #import here, cause outside the eggs

Re: [py-dev] INTERNAL ERROR doesn't give a good exit code?

2012-07-06 Thread holger krekel
Hi John, thanks for fixing it - i committed it to the trunk docs. best, holger On Fri, Jul 06, 2012 at 22:30 -0500, John Anderson wrote: Turns out it was the documented setup.py PyTestCommand I found: class PyTest(TestCommand): def finalize_options(self):