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 4.2.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/c8c6b6e32791
branches:  trunk
changeset: 329152:c8c6b6e32791
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Feb 01 11:52:22 2019 +0000

description:
py-test: updated to 4.2.0

pytest 4.2.0:

Features
* Class xunit-style functions and methods now obey the scope of autouse fixtures.
This fixes a number of surprising issues like setup_method being called before session-scoped autouse fixtures.

* Display a message at the end of the test session when running under Python 2.7 and 3.4 that pytest 5.0 will no longer support those Python versions.
* The number of selected tests now are also displayed when the -k or -m flags are used.
* pytest_report_teststatus hook now can also receive a config parameter.
* pytest_terminal_summary hook now can also receive a config parameter.

Bug Fixes
* --junitxml can emit XML compatible with Jenkins xUnit. junit_family INI option accepts legacy|xunit1, which produces old style output, and xunit2 that conforms more strictly to 
https://github.com/jenkinsci/xunit-plugin/blob/xunit-2.3.2/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd
* Improve quitting from pdb, especially with --trace.
Using q[quit] after pdb.set_trace() will quit pytest also.

* Warning summary now groups warnings by message instead of by test id.
This makes the output more compact and better conveys the general idea of how much code is actually generating warnings, instead of how many tests call that code.

* monkeypatch.delattr handles class descriptors like staticmethod/classmethod.
* Restore marks being considered keywords for keyword expressions.
* tmp_path fixture and other related ones provides resolved path (a.k.a real path)
* pytest_terminal_summary uses result from pytest_report_teststatus hook, rather than hardcoded strings.
* Correctly handle unittest.SkipTest exception containing non-ascii characters on Python 2.
* Ensure the tmpdir and the tmp_path fixtures are the same folder.
* Ensure tmp_path is always a real path.

Trivial/Internal Changes
* Use a.item() instead of the deprecated np.asscalar(a) in pytest.approx.
np.asscalar has been deprecated in numpy 1.16..

* Copy saferepr from pylib

diffstat:

 devel/py-test/Makefile |   4 ++--
 devel/py-test/PLIST    |   8 +++++++-
 devel/py-test/distinfo |  10 +++++-----
 3 files changed, 14 insertions(+), 8 deletions(-)

diffs (49 lines):

diff -r 4d90c25ffe51 -r c8c6b6e32791 devel/py-test/Makefile
--- a/devel/py-test/Makefile    Fri Feb 01 11:50:30 2019 +0000
+++ b/devel/py-test/Makefile    Fri Feb 01 11:52:22 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.70 2019/01/13 17:45:33 adam Exp $
+# $NetBSD: Makefile,v 1.71 2019/02/01 11:52:22 adam Exp $
 
-DISTNAME=      pytest-4.1.1
+DISTNAME=      pytest-4.2.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest/}
diff -r 4d90c25ffe51 -r c8c6b6e32791 devel/py-test/PLIST
--- a/devel/py-test/PLIST       Fri Feb 01 11:50:30 2019 +0000
+++ b/devel/py-test/PLIST       Fri Feb 01 11:52:22 2019 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.15 2018/11/05 08:36:25 adam Exp $
+@comment $NetBSD: PLIST,v 1.16 2019/02/01 11:52:22 adam Exp $
 bin/py.test-${PYVERSSUFFIX}
 bin/pytest-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
@@ -26,6 +26,12 @@
 ${PYSITELIB}/_pytest/_code/source.py
 ${PYSITELIB}/_pytest/_code/source.pyc
 ${PYSITELIB}/_pytest/_code/source.pyo
+${PYSITELIB}/_pytest/_io/__init__.py
+${PYSITELIB}/_pytest/_io/__init__.pyc
+${PYSITELIB}/_pytest/_io/__init__.pyo
+${PYSITELIB}/_pytest/_io/saferepr.py
+${PYSITELIB}/_pytest/_io/saferepr.pyc
+${PYSITELIB}/_pytest/_io/saferepr.pyo
 ${PYSITELIB}/_pytest/_version.py
 ${PYSITELIB}/_pytest/_version.pyc
 ${PYSITELIB}/_pytest/_version.pyo
diff -r 4d90c25ffe51 -r c8c6b6e32791 devel/py-test/distinfo
--- a/devel/py-test/distinfo    Fri Feb 01 11:50:30 2019 +0000
+++ b/devel/py-test/distinfo    Fri Feb 01 11:52:22 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.64 2019/01/13 17:45:33 adam Exp $
+$NetBSD: distinfo,v 1.65 2019/02/01 11:52:22 adam Exp $
 
-SHA1 (pytest-4.1.1.tar.gz) = 478be55c8e61a4ea2cdc37778e689338513cbaf0
-RMD160 (pytest-4.1.1.tar.gz) = 8d64cb8b9da35ee1d00d6e40e62eb065bcc31739
-SHA512 (pytest-4.1.1.tar.gz) = e93b742b61fdba7518d833bdc312282347853abb1fe76920f14e791ede2af57513b521b967303483dfc2e308ec83c9c9e1f8d81489ee5610808e3b33b42b8452
-Size (pytest-4.1.1.tar.gz) = 903912 bytes
+SHA1 (pytest-4.2.0.tar.gz) = 3a9c4e38d3d76c4aa482413788ec33324b12bf88
+RMD160 (pytest-4.2.0.tar.gz) = dc578229a4c2a9639ac4b42897cd015e6598ecc1
+SHA512 (pytest-4.2.0.tar.gz) = 71d77b391a096877597ca5130e5433fd8e41ec764f79acbb9aadd7abe782089067ae025ebf41df379ed8dd0f48d590db64607478e6f3c240fa8a2c91f96c5a95
+Size (pytest-4.2.0.tar.gz) = 909527 bytes



Home | Main Index | Thread Index | Old Index