pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/py-test py-test: updated to 3.6.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/09082f22ad9d
branches:  trunk
changeset: 308712:09082f22ad9d
user:      adam <adam%pkgsrc.org@localhost>
date:      Wed May 30 07:35:18 2018 +0000

description:
py-test: updated to 3.6.0

Pytest 3.6.0
Features
Revamp the internals of the pytest.mark implementation with correct per node handling which fixes a number of long standing bugs caused by the old design. This introduces new Node.iter_markers(name) 
and Node.get_closest_mark(name) APIs. Users are strongly encouraged to read the reasons for the revamp in the docs, or jump over to details about updating existing code to use the new APIs.
Now when @pytest.fixture is applied more than once to the same function a ValueError is raised. This buggy behavior would cause surprising problems and if was working for a test suite it was mostly 
by accident.
Support for Python 3.7?s builtin breakpoint() method, see Using the builtin breakpoint function for details.
monkeypatch now supports a context() function which acts as a context manager which undoes all patching done within the with block.
The --pdb option now causes KeyboardInterrupt to enter the debugger, instead of stopping the test session. On python 2.7, hitting CTRL+C again exits the debugger. On python 3.2 and higher, use CTRL+D.
pytest not longer changes the log level of the root logger when the log-level parameter has greater numeric value than that of the level of the root logger, which makes it play better with custom 
logging configuration in user code.

Bug Fixes
A rare race-condition which might result in corrupted .pyc files on Windows has been hopefully solved.
Also use iter_marker for discovering the marks applying for marker expressions from the cli to avoid the bad data from the legacy mark storage.
When showing diffs of failed assertions where the contents contain only whitespace, escape them using repr() first to make it easy to spot the differences.

diffstat:

 devel/py-test/Makefile |   9 +++++----
 devel/py-test/distinfo |  10 +++++-----
 2 files changed, 10 insertions(+), 9 deletions(-)

diffs (43 lines):

diff -r 1a3cded38a04 -r 09082f22ad9d devel/py-test/Makefile
--- a/devel/py-test/Makefile    Wed May 30 07:33:29 2018 +0000
+++ b/devel/py-test/Makefile    Wed May 30 07:35:18 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.47 2018/04/25 06:57:01 adam Exp $
+# $NetBSD: Makefile,v 1.48 2018/05/30 07:35:18 adam Exp $
 
-DISTNAME=      pytest-3.5.1
+DISTNAME=      pytest-3.6.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest/}
@@ -10,12 +10,13 @@
 COMMENT=       Python testing tool
 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}-more-itertools>=4.0.0:../../devel/py-more-itertools
 DEPENDS+=      ${PYPKGPREFIX}-pluggy>=0.5:../../devel/py-pluggy
-DEPENDS+=      ${PYPKGPREFIX}-py>=1.4.29:../../devel/py-py
-DEPENDS+=      ${PYPKGPREFIX}-six-[0-9]*:../../lang/py-six
+DEPENDS+=      ${PYPKGPREFIX}-py>=1.5.0:../../devel/py-py
+DEPENDS+=      ${PYPKGPREFIX}-six>=1.10.0:../../lang/py-six
 BUILD_DEPENDS+=        ${PYPKGPREFIX}-setuptools_scm-[0-9]*:../../devel/py-setuptools_scm
 TEST_DEPENDS+= ${PYPKGPREFIX}-hypothesis-[0-9]*:../../devel/py-hypothesis
 TEST_DEPENDS+= ${PYPKGPREFIX}-yaml-[0-9]*:../../textproc/py-yaml
diff -r 1a3cded38a04 -r 09082f22ad9d devel/py-test/distinfo
--- a/devel/py-test/distinfo    Wed May 30 07:33:29 2018 +0000
+++ b/devel/py-test/distinfo    Wed May 30 07:35:18 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.44 2018/04/25 06:57:01 adam Exp $
+$NetBSD: distinfo,v 1.45 2018/05/30 07:35:18 adam Exp $
 
-SHA1 (pytest-3.5.1.tar.gz) = cc186a60c28c035350e42aac3434d9fe0c5ca2b9
-RMD160 (pytest-3.5.1.tar.gz) = 8a41afd4c1c05838829d8d80728fd4c7d68a99b1
-SHA512 (pytest-3.5.1.tar.gz) = 5f54251b197b4bebadb06536054b4f79e16c5cec2cdfd7d95fd74548b8ecfaddaafeb635eb90d085fe4d4bea1108f951fe500d0e548cc8b797b0d23e0c2693a0
-Size (pytest-3.5.1.tar.gz) = 830571 bytes
+SHA1 (pytest-3.6.0.tar.gz) = 167a0e86aec8d1e2ada0bde1d0fede4b62f83c39
+RMD160 (pytest-3.6.0.tar.gz) = 483c556974d171514d11780d0e4a4d124a4bce68
+SHA512 (pytest-3.6.0.tar.gz) = f49755957c098e0d6b4cd9613e288dd2b5b68b1db488fae999b3278bb56df9d516e5a4ef9b021b5df94228129fc3702577883c76be1fbecfb3a39ace0189482d
+Size (pytest-3.6.0.tar.gz) = 837109 bytes



Home | Main Index | Thread Index | Old Index