pkgsrc-Changes archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
CVS commit: pkgsrc/devel/py-test
Module Name: pkgsrc
Committed By: adam
Date: Sun Aug 5 10:17:47 UTC 2018
Modified Files:
pkgsrc/devel/py-test: Makefile PLIST distinfo
Log Message:
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.
To generate a diff of this commit:
cvs rdiff -u -r1.51 -r1.52 pkgsrc/devel/py-test/Makefile
cvs rdiff -u -r1.11 -r1.12 pkgsrc/devel/py-test/PLIST
cvs rdiff -u -r1.48 -r1.49 pkgsrc/devel/py-test/distinfo
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: pkgsrc/devel/py-test/Makefile
diff -u pkgsrc/devel/py-test/Makefile:1.51 pkgsrc/devel/py-test/Makefile:1.52
--- pkgsrc/devel/py-test/Makefile:1.51 Thu Jul 5 06:48:20 2018
+++ pkgsrc/devel/py-test/Makefile Sun Aug 5 10:17:47 2018
@@ -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
Index: pkgsrc/devel/py-test/PLIST
diff -u pkgsrc/devel/py-test/PLIST:1.11 pkgsrc/devel/py-test/PLIST:1.12
--- pkgsrc/devel/py-test/PLIST:1.11 Thu Jun 21 06:41:14 2018
+++ pkgsrc/devel/py-test/PLIST Sun Aug 5 10:17:47 2018
@@ -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
Index: pkgsrc/devel/py-test/distinfo
diff -u pkgsrc/devel/py-test/distinfo:1.48 pkgsrc/devel/py-test/distinfo:1.49
--- pkgsrc/devel/py-test/distinfo:1.48 Thu Jul 5 06:48:20 2018
+++ pkgsrc/devel/py-test/distinfo Sun Aug 5 10:17:47 2018
@@ -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
Home |
Main Index |
Thread Index |
Old Index