1 new commit in pytest:

https://bitbucket.org/hpk42/pytest/changeset/3a18ce85ae81/
changeset:   3a18ce85ae81
user:        hpk42
date:        2012-07-07 07:40:51
summary:     exit with errno instead of always signalling success, thanks John 
Anderson
affected #:  2 files

diff -r d9a574e890f028e8fd520807cf1e7a88bcbc300f -r 
3a18ce85ae81adb382992d7f00865092c3965326 CHANGELOG
--- a/CHANGELOG
+++ b/CHANGELOG
@@ -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" 


diff -r d9a574e890f028e8fd520807cf1e7a88bcbc300f -r 
3a18ce85ae81adb382992d7f00865092c3965326 doc/en/goodpractises.txt
--- a/doc/en/goodpractises.txt
+++ b/doc/en/goodpractises.txt
@@ -103,6 +103,7 @@
 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 @@
         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(
         #...,

Repository URL: https://bitbucket.org/hpk42/pytest/

--

This is a commit notification from bitbucket.org. You are receiving
this because you have the service enabled, addressing the recipient of
this email.
_______________________________________________
py-svn mailing list
py-svn@codespeak.net
http://codespeak.net/mailman/listinfo/py-svn

Reply via email to