Path: csiph.com!usenet.pasdenom.info!aioe.org!news.stack.nl!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail Return-Path: X-Original-To: python-announce-list@python.org Delivered-To: python-announce-list@mail.python.org X-Spam-Status: OK 0.000 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'argument': 0.05; 'output': 0.05; 'attribute': 0.07; 'distutils': 0.07; 'fixes': 0.07; 'pypi': 0.07; 'tests.': 0.07; 'arguments': 0.09; 'classes.': 0.09; 'decorator': 0.09; 'output,': 0.09; 'reports.': 0.09; 'satisfy': 0.09; 'python': 0.11; 'skip:= 70': 0.12; 'changes': 0.15; 'argument.': 0.16; 'exceptions,': 0.16; 'krekel': 0.16; 'marker': 0.16; 'nicolas': 0.16; 'optional': 0.16; 'pytest': 0.16; 'received:eu': 0.16; 'rewriting': 0.16; 'separated': 0.16; 'subject:fixes': 0.16; 'to:addr:python-announce-list': 0.16; 'tuple': 0.16; 'exception': 0.16; 'skip:= 10': 0.16; 'fix': 0.17; 'passing': 0.19; 'import': 0.22; 'install': 0.23; 'header:User- Agent:1': 0.23; 'holger': 0.24; 'specify': 0.24; 'extension': 0.26; 'possibly': 0.26; 'shown': 0.26; 'testing': 0.29; 'feature': 0.29; 'code': 0.31; 'exceptions': 0.31; 'node': 0.31; 'purely': 0.31; 'compatible': 0.32; 'at:': 0.34; 'could': 0.34; 'tool': 0.35; 'test': 0.35; 'add': 0.35; 'accessing': 0.36; 'fun,': 0.36; 'charset:us-ascii': 0.36; 'thanks': 0.36; 'url:org': 0.36; 'integration': 0.37; 'expected': 0.38; 'files': 0.38; 'issue': 0.38; 'rather': 0.38; 'little': 0.38; 'to:addr:python.org': 0.39; 'skip:p 20': 0.39; 'release': 0.40; 'skip:u 10': 0.60; 'removing': 0.60; 'introduced': 0.61; 'new': 0.61; 'numbers': 0.61; 'content- disposition:inline': 0.62; 'complete': 0.62; 'address': 0.63; 'show': 0.63; 'different': 0.65; 'to:2**2': 0.65; 'below.': 0.71; 'detecting': 0.84; 'mature': 0.84; 'sfxlen:1': 0.91; 'directly.': 0.95 Date: Thu, 7 Aug 2014 20:56:50 +0000 From: holger krekel To: pytest-dev , Testing in Python , python announce Subject: pytest-2.6.1: fixes and expecting exceptions in xfail Mail-Followup-To: holger krekel , pytest-dev , Testing in Python , python announce MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.5.20 (2009-06-14) X-Mailman-Approved-At: Fri, 08 Aug 2014 08:37:32 +0200 X-BeenThere: python-announce-list@python.org X-Mailman-Version: 2.1.15 Precedence: list Reply-To: python-list@python.org List-Id: Announcement-only list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Approved: python-announce-list@python.org Newsgroups: comp.lang.python.announce Message-ID: Lines: 58 NNTP-Posting-Host: 2001:888:2000:d::a6 X-Trace: 1407479853 news.xs4all.nl 2861 [2001:888:2000:d::a6]:38951 X-Complaints-To: abuse@xs4all.nl Xref: csiph.com comp.lang.python.announce:1345 pytest-2.6.1: fixes and new xfail marker feature =========================================================================== pytest is a mature Python testing tool with an extensive self-test test suite, passing on many different interpreters and platforms. The 2.6.1 release is drop-in compatible to 2.5.2 and actually fixes some regressions introduced with 2.6.0. It also brings a little feature to the xfail marker which now recognizes expected exceptions, see the CHANGELOG below. See docs at: http://pytest.org As usual, you can upgrade from pypi via:: pip install -U pytest Thanks to all who contributed, among them: Floris Bruynooghe Bruno Oliveira Nicolas Delaby have fun, holger krekel Changes 2.6.1 ================= - No longer show line numbers in the --verbose output, the output is now purely the nodeid. The line number is still shown in failure reports. Thanks Floris Bruynooghe. - fix issue437 where assertion rewriting could cause pytest-xdist slaves to collect different tests. Thanks Bruno Oliveira. - fix issue555: add "errors" attribute to capture-streams to satisfy some distutils and possibly other code accessing sys.stdout.errors. - fix issue547 capsys/capfd also work when output capturing ("-s") is disabled. - address issue170: allow pytest.mark.xfail(...) to specify expected exceptions via an optional "raises=EXC" argument where EXC can be a single exception or a tuple of exception classes. Thanks David Mohr for the complete PR. - fix integration of pytest with unittest.mock.patch decorator when it uses the "new" argument. Thanks Nicolas Delaby for test and PR. - fix issue with detecting conftest files if the arguments contain "::" node id specifications (copy pasted from "-v" output) - fix issue544 by only removing "@NUM" at the end of "::" separated parts and if the part has an ".py" extension - don't use py.std import helper, rather import things directly. Thanks Bruno Oliveira.