exit with errno instead of always signalling success, thanks John Anderson
This commit is contained in:
parent
ddd4467fdd
commit
838e758cf7
|
@ -1,6 +1,7 @@
|
|||
Changes between 2.2.4 and 2.3.0.dev
|
||||
-----------------------------------
|
||||
|
||||
- fix "python setup.py test" example to cause a proper "errno" return
|
||||
- fix issue165 - fix broken doc links and mention stackoverflow for FAQ
|
||||
- fix issue139 - merge FuncargRequest and Item API such that
|
||||
funcarg-functionality is now directly available on the "item"
|
||||
|
|
|
@ -103,6 +103,7 @@ which means its really easy to extend its test command
|
|||
to support running a pytest from test requirements::
|
||||
|
||||
from setuptools.command.test import test as TestCommand
|
||||
import sys
|
||||
|
||||
class PyTest(TestCommand):
|
||||
def finalize_options(self):
|
||||
|
@ -112,7 +113,8 @@ to support running a pytest from test requirements::
|
|||
def run_tests(self):
|
||||
#import here, cause outside the eggs aren't loaded
|
||||
import pytest
|
||||
pytest.main(self.test_args)
|
||||
errno = pytest.main(self.test_args)
|
||||
sys.exit(errno)
|
||||
|
||||
setup(
|
||||
#...,
|
||||
|
|
Loading…
Reference in New Issue