Skip to content

Commit 416bbff

Browse files
author
wiz
committed
Update py-test to 2.9.1.
2.9.1 ===== **Bug Fixes** * Improve error message when a plugin fails to load. Thanks `@nicoddemus`_ for the PR. * Fix (`#1178 <https://github.com/pytest-dev/pytest/issues/1178>`_): ``pytest.fail`` with non-ascii characters raises an internal pytest error. Thanks `@nicoddemus`_ for the PR. * Fix (`#469`_): junit parses report.nodeid incorrectly, when params IDs contain ``::``. Thanks `@tomviner`_ for the PR (`#1431`_). * Fix (`#578 <https://github.com/pytest-dev/pytest/issues/578>`_): SyntaxErrors containing non-ascii lines at the point of failure generated an internal py.test error. Thanks `@asottile`_ for the report and `@nicoddemus`_ for the PR. * Fix (`#1437`_): When passing in a bytestring regex pattern to parameterize attempt to decode it as utf-8 ignoring errors. * Fix (`#649`_): parametrized test nodes cannot be specified to run on the command line. .. _#1437: pytest-dev/pytest#1437 .. _#469: pytest-dev/pytest#469 .. _#1431: pytest-dev/pytest#1431 .. _#649: pytest-dev/pytest#649 .. _@asottile: https://github.com/asottile 2.9.0 ===== **New Features** * New ``pytest.mark.skip`` mark, which unconditionally skips marked tests. Thanks `@MichaelAquilina`_ for the complete PR (`#1040`_). * ``--doctest-glob`` may now be passed multiple times in the command-line. Thanks `@jab`_ and `@nicoddemus`_ for the PR. * New ``-rp`` and ``-rP`` reporting options give the summary and full output of passing tests, respectively. Thanks to `@codewarrior0`_ for the PR. * ``pytest.mark.xfail`` now has a ``strict`` option, which makes ``XPASS`` tests to fail the test suite (defaulting to ``False``). There's also a ``xfail_strict`` ini option that can be used to configure it project-wise. Thanks `@rabbbit`_ for the request and `@nicoddemus`_ for the PR (`#1355`_). * ``Parser.addini`` now supports options of type ``bool``. Thanks `@nicoddemus`_ for the PR. * New ``ALLOW_BYTES`` doctest option. This strips ``b`` prefixes from byte strings in doctest output (similar to ``ALLOW_UNICODE``). Thanks `@jaraco`_ for the request and `@nicoddemus`_ for the PR (`#1287`_). * Give a hint on ``KeyboardInterrupt`` to use the ``--fulltrace`` option to show the errors. Fixes `#1366`_. Thanks to `@hpk42`_ for the report and `@RonnyPfannschmidt`_ for the PR. * Catch ``IndexError`` exceptions when getting exception source location. Fixes a pytest internal error for dynamically generated code (fixtures and tests) where source lines are fake by intention. **Changes** * **Important**: `py.code <http://pylib.readthedocs.org/en/latest/code.html>`_ has been merged into the ``pytest`` repository as ``pytest._code``. This decision was made because ``py.code`` had very few uses outside ``pytest`` and the fact that it was in a different repository made it difficult to fix bugs on its code in a timely manner. The team hopes with this to be able to better refactor out and improve that code. This change shouldn't affect users, but it is useful to let users aware if they encounter any strange behavior. Keep in mind that the code for ``pytest._code`` is **private** and **experimental**, so you definitely should not import it explicitly! Please note that the original ``py.code`` is still available in `pylib <http://pylib.readthedocs.org>`_. * ``pytest_enter_pdb`` now optionally receives the pytest config object. Thanks `@nicoddemus`_ for the PR. * Removed code and documentation for Python 2.5 or lower versions, including removal of the obsolete ``_pytest.assertion.oldinterpret`` module. Thanks `@nicoddemus`_ for the PR (`#1226`_). * Comparisons now always show up in full when ``CI`` or ``BUILD_NUMBER`` is found in the environment, even when ``-vv`` isn't used. Thanks `@The-Compiler`_ for the PR. * ``--lf`` and ``--ff`` now support long names: ``--last-failed`` and ``--failed-first`` respectively. Thanks `@MichaelAquilina`_ for the PR. * Added expected exceptions to ``pytest.raises`` fail message. * Collection only displays progress ("collecting X items") when in a terminal. This avoids cluttering the output when using ``--color=yes`` to obtain colors in CI integrations systems (`#1397`_). **Bug Fixes** * The ``-s`` and ``-c`` options should now work under ``xdist``; ``Config.fromdictargs`` now represents its input much more faithfully. Thanks to `@bukzor`_ for the complete PR (`#680`_). * Fix (`#1290`_): support Python 3.5's ``@`` operator in assertion rewriting. Thanks `@Shinkenjoe`_ for report with test case and `@tomviner`_ for the PR. * Fix formatting utf-8 explanation messages (`#1379`_). Thanks `@biern`_ for the PR. * Fix `traceback style docs`_ to describe all of the available options (auto/long/short/line/native/no), with `auto` being the default since v2.6. Thanks `@hackebrot`_ for the PR. * Fix (`#1422`_): junit record_xml_property doesn't allow multiple records with same name. .. _`traceback style docs`: https://pytest.org/latest/usage.html#modifying-python-traceback-printing .. _#1422: pytest-dev/pytest#1422 .. _#1379: pytest-dev/pytest#1379 .. _#1366: pytest-dev/pytest#1366 .. _#1040: pytest-dev/pytest#1040 .. _#680: pytest-dev/pytest#680 .. _#1287: pytest-dev/pytest#1287 .. _#1226: pytest-dev/pytest#1226 .. _#1290: pytest-dev/pytest#1290 .. _#1355: pytest-dev/pytest#1355 .. _#1397: pytest-dev/pytest#1397 .. _@biern: https://github.com/biern .. _@MichaelAquilina: https://github.com/MichaelAquilina .. _@bukzor: https://github.com/bukzor .. _@hpk42: https://github.com/hpk42 .. _@nicoddemus: https://github.com/nicoddemus .. _@jab: https://github.com/jab .. _@codewarrior0: https://github.com/codewarrior0 .. _@jaraco: https://github.com/jaraco .. _@The-Compiler: https://github.com/The-Compiler .. _@Shinkenjoe: https://github.com/Shinkenjoe .. _@tomviner: https://github.com/tomviner .. _@RonnyPfannschmidt: https://github.com/RonnyPfannschmidt .. _@rabbbit: https://github.com/rabbbit .. _@hackebrot: https://github.com/hackebrot
1 parent 874cd5e commit 416bbff

File tree

3 files changed

+20
-14
lines changed

3 files changed

+20
-14
lines changed

devel/py-test/Makefile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
# $NetBSD: Makefile,v 1.15 2016/02/01 13:03:45 wiz Exp $
1+
# $NetBSD: Makefile,v 1.16 2016/04/13 18:39:21 wiz Exp $
22

3-
DISTNAME= pytest-2.8.7
3+
DISTNAME= pytest-2.9.1
44
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
55
CATEGORIES= devel
66
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest/}

devel/py-test/PLIST

+13-7
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
@comment $NetBSD: PLIST,v 1.3 2015/10/19 09:44:10 wiz Exp $
1+
@comment $NetBSD: PLIST,v 1.4 2016/04/13 18:39:21 wiz Exp $
22
bin/py.test-${PYVERSSUFFIX}
33
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
44
${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt
@@ -13,18 +13,24 @@ ${PYSITELIB}/_pytest/__init__.pyo
1313
${PYSITELIB}/_pytest/_argcomplete.py
1414
${PYSITELIB}/_pytest/_argcomplete.pyc
1515
${PYSITELIB}/_pytest/_argcomplete.pyo
16+
${PYSITELIB}/_pytest/_code/__init__.py
17+
${PYSITELIB}/_pytest/_code/__init__.pyc
18+
${PYSITELIB}/_pytest/_code/__init__.pyo
19+
${PYSITELIB}/_pytest/_code/_py2traceback.py
20+
${PYSITELIB}/_pytest/_code/_py2traceback.pyc
21+
${PYSITELIB}/_pytest/_code/_py2traceback.pyo
22+
${PYSITELIB}/_pytest/_code/code.py
23+
${PYSITELIB}/_pytest/_code/code.pyc
24+
${PYSITELIB}/_pytest/_code/code.pyo
25+
${PYSITELIB}/_pytest/_code/source.py
26+
${PYSITELIB}/_pytest/_code/source.pyc
27+
${PYSITELIB}/_pytest/_code/source.pyo
1628
${PYSITELIB}/_pytest/_pluggy.py
1729
${PYSITELIB}/_pytest/_pluggy.pyc
1830
${PYSITELIB}/_pytest/_pluggy.pyo
1931
${PYSITELIB}/_pytest/assertion/__init__.py
2032
${PYSITELIB}/_pytest/assertion/__init__.pyc
2133
${PYSITELIB}/_pytest/assertion/__init__.pyo
22-
${PYSITELIB}/_pytest/assertion/newinterpret.py
23-
${PYSITELIB}/_pytest/assertion/newinterpret.pyc
24-
${PYSITELIB}/_pytest/assertion/newinterpret.pyo
25-
${PYSITELIB}/_pytest/assertion/oldinterpret.py
26-
${PYSITELIB}/_pytest/assertion/oldinterpret.pyc
27-
${PYSITELIB}/_pytest/assertion/oldinterpret.pyo
2834
${PYSITELIB}/_pytest/assertion/reinterpret.py
2935
${PYSITELIB}/_pytest/assertion/reinterpret.pyc
3036
${PYSITELIB}/_pytest/assertion/reinterpret.pyo

devel/py-test/distinfo

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
$NetBSD: distinfo,v 1.16 2016/02/01 13:03:45 wiz Exp $
1+
$NetBSD: distinfo,v 1.17 2016/04/13 18:39:21 wiz Exp $
22

3-
SHA1 (pytest-2.8.7.tar.gz) = 58474cc27e8737ddde907b8d7b9917fc88493b1f
4-
RMD160 (pytest-2.8.7.tar.gz) = 10eb0ec9284f84862106ea230bdd320c7b4a05ad
5-
SHA512 (pytest-2.8.7.tar.gz) = c7f626ceb599811caeab4646389a2c489dd22d766c772d6ca686098cef9a11dca47ef41a4a4b811110f358bca1f1a678b549b2adfea48317ae70cf166289b371
6-
Size (pytest-2.8.7.tar.gz) = 564943 bytes
3+
SHA1 (pytest-2.9.1.tar.gz) = f1c1c9ca02907285a15613cdbea36b7bd9da5e23
4+
RMD160 (pytest-2.9.1.tar.gz) = f8aec6c6a68ab78b6cb32cb78a709c748f9f34a9
5+
SHA512 (pytest-2.9.1.tar.gz) = 88b579e88cc641ffe33e7a97c174890bb3e8d2ad6c7c9a0888e29ff7d1a670d377804ad0cc1885c82b077ca4956995122ae44cabb91703a07af6b8192ee82019
6+
Size (pytest-2.9.1.tar.gz) = 700602 bytes
77
SHA1 (patch-aa) = 8f328ce39459c5a6fb7cca404f4986c1030d7981

0 commit comments

Comments
 (0)