diff options
author | adam <adam@pkgsrc.org> | 2018-08-05 10:17:47 +0000 |
---|---|---|
committer | adam <adam@pkgsrc.org> | 2018-08-05 10:17:47 +0000 |
commit | b758315e283807e03ebfd6d71f57289d5cb03989 (patch) | |
tree | 0571bb50d5dc5a21be9951b24d40e5a5f566bc8f | |
parent | 9417ffc70e42684a452e019448cff8982d90dfe1 (diff) | |
download | pkgsrc-b758315e283807e03ebfd6d71f57289d5cb03989.tar.gz |
py-test: updated to 3.7.1
pytest 3.7.1:
Bug Fixes
- Raise immediately if approx() is given an expected value of a type it doesn't understand (e.g. strings, nested dicts, etc.).
- Correctly represent the dimensions of an numpy array when calling repr() on approx().
- Display the absolute path if cache_dir is not relative to the rootdir instead of failing.
- Fix compatibility problem with plugins and the warning code issued by fixture functions when they are called directly.
- Fix infinite recursion in pytest.approx with arrays in numpy<1.13.
- Pin pathlib2 to >=2.2.0 as we require __fspath__ support.
- Fix TypeError when the assertion message is bytes in python 3.
pytest 3.7.0:
Deprecations and Removals
- pytest_namespace has been deprecated.
See the documentation for pytest_namespace hook for suggestions on how to deal
with this in plugins which use this functionality.
- Calling a fixture function directly, as opposed to request them in a test function, now issues a RemovedInPytest4Warning. It will be changed into an error in pytest 4.0.
This is a great source of confusion to new users, which will often call the fixture functions and request them from test functions interchangeably, which breaks the fixture resolution model.
Features
- New package fixture scope: fixtures are finalized when the last test of a *package* finishes. This feature is considered **experimental**, so use it sparingly.
- Node.add_marker now supports an append=True/False parameter to determine whether the mark comes last (default) or first.
- Fixture caplog now has a messages property, providing convenient access to the format-interpolated log messages without the extra data provided by the formatter/handler.
- New --trace option to enter the debugger at the start of a test.
- Introduce pytester.copy_example as helper to do acceptance tests against examples from the project.
Bug Fixes
- Fix a bug where fixtures overridden by direct parameters (for example parametrization) were being instantiated even if they were not being used by a test.
- Fix ApproxNumpy initialisation argument mixup, abs and rel tolerances were flipped causing strange comparsion results.
Add tests to check abs and rel tolerances for np.array and test for expecting nan with np.array()
- Fix truncated locals output in verbose mode.
Improved Documentation
- Correct the usage documentation of --last-failed-no-failures by adding the missing --last-failed argument in the presented examples, because they are misleading and lead to think that the missing argument is not needed.
Trivial/Internal Changes
- Now a README.md file is created in .pytest_cache to make it clear why the directory exists.
-rw-r--r-- | devel/py-test/Makefile | 6 | ||||
-rw-r--r-- | devel/py-test/PLIST | 11 | ||||
-rw-r--r-- | devel/py-test/distinfo | 10 |
3 files changed, 18 insertions, 9 deletions
diff --git a/devel/py-test/Makefile b/devel/py-test/Makefile index 2794967c2d8..66943592bda 100644 --- a/devel/py-test/Makefile +++ b/devel/py-test/Makefile @@ -1,6 +1,6 @@ -# $NetBSD: Makefile,v 1.51 2018/07/05 06:48:20 adam Exp $ +# $NetBSD: Makefile,v 1.52 2018/08/05 10:17:47 adam Exp $ -DISTNAME= pytest-3.6.3 +DISTNAME= pytest-3.7.1 PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} CATEGORIES= devel python MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest/} @@ -12,7 +12,7 @@ LICENSE= mit DEPENDS+= ${PYPKGPREFIX}-atomicwrites>=1.0:../../devel/py-atomicwrites DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs -#DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat +DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat DEPENDS+= ${PYPKGPREFIX}-more-itertools>=4.0.0:../../devel/py-more-itertools DEPENDS+= ${PYPKGPREFIX}-pluggy>=0.5:../../devel/py-pluggy DEPENDS+= ${PYPKGPREFIX}-py>=1.5.0:../../devel/py-py diff --git a/devel/py-test/PLIST b/devel/py-test/PLIST index 8d6ebe2b758..c359a6cd76d 100644 --- a/devel/py-test/PLIST +++ b/devel/py-test/PLIST @@ -1,4 +1,4 @@ -@comment $NetBSD: PLIST,v 1.11 2018/06/21 06:41:14 adam Exp $ +@comment $NetBSD: PLIST,v 1.12 2018/08/05 10:17:47 adam Exp $ bin/py.test-${PYVERSSUFFIX} bin/pytest-${PYVERSSUFFIX} ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO @@ -71,6 +71,9 @@ ${PYSITELIB}/_pytest/deprecated.pyo ${PYSITELIB}/_pytest/doctest.py ${PYSITELIB}/_pytest/doctest.pyc ${PYSITELIB}/_pytest/doctest.pyo +${PYSITELIB}/_pytest/experiments.py +${PYSITELIB}/_pytest/experiments.pyc +${PYSITELIB}/_pytest/experiments.pyo ${PYSITELIB}/_pytest/fixtures.py ${PYSITELIB}/_pytest/fixtures.pyc ${PYSITELIB}/_pytest/fixtures.pyo @@ -119,6 +122,9 @@ ${PYSITELIB}/_pytest/outcomes.pyo ${PYSITELIB}/_pytest/pastebin.py ${PYSITELIB}/_pytest/pastebin.pyc ${PYSITELIB}/_pytest/pastebin.pyo +${PYSITELIB}/_pytest/paths.py +${PYSITELIB}/_pytest/paths.pyc +${PYSITELIB}/_pytest/paths.pyo ${PYSITELIB}/_pytest/pytester.py ${PYSITELIB}/_pytest/pytester.pyc ${PYSITELIB}/_pytest/pytester.pyo @@ -131,6 +137,9 @@ ${PYSITELIB}/_pytest/python_api.pyo ${PYSITELIB}/_pytest/recwarn.py ${PYSITELIB}/_pytest/recwarn.pyc ${PYSITELIB}/_pytest/recwarn.pyo +${PYSITELIB}/_pytest/reports.py +${PYSITELIB}/_pytest/reports.pyc +${PYSITELIB}/_pytest/reports.pyo ${PYSITELIB}/_pytest/resultlog.py ${PYSITELIB}/_pytest/resultlog.pyc ${PYSITELIB}/_pytest/resultlog.pyo diff --git a/devel/py-test/distinfo b/devel/py-test/distinfo index 510d7cef36a..ae35c042dad 100644 --- a/devel/py-test/distinfo +++ b/devel/py-test/distinfo @@ -1,6 +1,6 @@ -$NetBSD: distinfo,v 1.48 2018/07/05 06:48:20 adam Exp $ +$NetBSD: distinfo,v 1.49 2018/08/05 10:17:47 adam Exp $ -SHA1 (pytest-3.6.3.tar.gz) = 6c6026e000d4463bf9b0399a63567b75a8faa4c2 -RMD160 (pytest-3.6.3.tar.gz) = 28cdd377a030f53f07a9ead251d18608ca91ffdd -SHA512 (pytest-3.6.3.tar.gz) = e18d8e972cb1b05b037b9441eea5981ce036d8e2c2bab80f6e50f283df9bd08740296133990424cf78449f6d3d2fbd1d59709770aa972af99fe061583f2d79a7 -Size (pytest-3.6.3.tar.gz) = 830949 bytes +SHA1 (pytest-3.7.1.tar.gz) = eaf3f55e08befbd9b7a56fcea8bb4cdc177edde3 +RMD160 (pytest-3.7.1.tar.gz) = 184a2446c82f9925f257a263796158bf88024b39 +SHA512 (pytest-3.7.1.tar.gz) = 703e52ca1400aeb6e68c802027f4c9f6d9079e3808cbeba730992e062cc1d5b53e5c1fa4bb3a98d97d2ed2b14fd1d5d1d191c970e44be382dc09b03a70f27f8b +Size (pytest-3.7.1.tar.gz) = 845094 bytes |