Wed Apr 25 06:57:01 2018 UTC ()
py-test: updated to 3.5.1

Pytest 3.5.1:
Bug Fixes
Reset sys.last_type, sys.last_value and sys.last_traceback before each test executes. Those attributes are added by pytest during the test run to aid debugging, but were never reset so they would create a leaking reference to the last failing test窶冱 frame which in turn could never be reclaimed by the garbage collector.
pytest.raises now raises TypeError when receiving an unknown keyword argument.
pytest.raises now works with exception classes that look like iterables.

Improved Documentation
Fix typo in caplog fixture documentation, which incorrectly identified certain attributes as methods.

Trivial/Internal Changes
Added a more indicative error message when parametrizing a function whose argument takes a default value.
Remove internal _pytest.terminal.flatten function in favor of more_itertools.collapse.
Import some modules from collections.abc instead of collections as the former modules trigger DeprecationWarning in Python 3.7.
record_property is no longer experimental, removing the warnings was forgotten.
Mention in documentation and CLI help that fixtures with leading _ are printed by pytest --fixtures only if the -v option is added.


(adam)
diff -r1.46 -r1.47 pkgsrc/devel/py-test/Makefile
diff -r1.43 -r1.44 pkgsrc/devel/py-test/distinfo

cvs diff -r1.46 -r1.47 pkgsrc/devel/py-test/Makefile (expand / switch to unified diff)

--- pkgsrc/devel/py-test/Makefile 2018/03/23 08:58:00 1.46
+++ pkgsrc/devel/py-test/Makefile 2018/04/25 06:57:01 1.47
@@ -1,16 +1,16 @@ @@ -1,16 +1,16 @@
1# $NetBSD: Makefile,v 1.46 2018/03/23 08:58:00 adam Exp $ 1# $NetBSD: Makefile,v 1.47 2018/04/25 06:57:01 adam Exp $
2 2
3DISTNAME= pytest-3.5.0 3DISTNAME= pytest-3.5.1
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
5CATEGORIES= devel python 5CATEGORIES= devel python
6MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest/} 6MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest/}
7 7
8MAINTAINER= pkgsrc-users@NetBSD.org 8MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= http://pytest.org/ 9HOMEPAGE= http://pytest.org/
10COMMENT= Python testing tool 10COMMENT= Python testing tool
11LICENSE= mit 11LICENSE= mit
12 12
13DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs 13DEPENDS+= ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs
14DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat 14DEPENDS+= ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
15DEPENDS+= ${PYPKGPREFIX}-more-itertools>=4.0.0:../../devel/py-more-itertools 15DEPENDS+= ${PYPKGPREFIX}-more-itertools>=4.0.0:../../devel/py-more-itertools
16DEPENDS+= ${PYPKGPREFIX}-pluggy>=0.5:../../devel/py-pluggy 16DEPENDS+= ${PYPKGPREFIX}-pluggy>=0.5:../../devel/py-pluggy

cvs diff -r1.43 -r1.44 pkgsrc/devel/py-test/distinfo (expand / switch to unified diff)

--- pkgsrc/devel/py-test/distinfo 2018/03/23 08:58:00 1.43
+++ pkgsrc/devel/py-test/distinfo 2018/04/25 06:57:01 1.44
@@ -1,6 +1,6 @@ @@ -1,6 +1,6 @@
1$NetBSD: distinfo,v 1.43 2018/03/23 08:58:00 adam Exp $ 1$NetBSD: distinfo,v 1.44 2018/04/25 06:57:01 adam Exp $
2 2
3SHA1 (pytest-3.5.0.tar.gz) = ebb431b74c018005d9298af34660c3f186235ccc 3SHA1 (pytest-3.5.1.tar.gz) = cc186a60c28c035350e42aac3434d9fe0c5ca2b9
4RMD160 (pytest-3.5.0.tar.gz) = ccf66ab8ba7125e7c565af48a8e4b6cd812470d7 4RMD160 (pytest-3.5.1.tar.gz) = 8a41afd4c1c05838829d8d80728fd4c7d68a99b1
5SHA512 (pytest-3.5.0.tar.gz) = 031997650592a5c5697981c517082a8de0f585b63e9fcba57903163c0e87ab6a4206f93038ecc130530422547bfc0e03f765c8f260e52e51f2f9e0cb26ceeaa8 5SHA512 (pytest-3.5.1.tar.gz) = 5f54251b197b4bebadb06536054b4f79e16c5cec2cdfd7d95fd74548b8ecfaddaafeb635eb90d085fe4d4bea1108f951fe500d0e548cc8b797b0d23e0c2693a0
6Size (pytest-3.5.0.tar.gz) = 830816 bytes 6Size (pytest-3.5.1.tar.gz) = 830571 bytes