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.4.0



details:   https://anonhg.NetBSD.org/pkgsrc/rev/3b685b21edfb
branches:  trunk
changeset: 332058:3b685b21edfb
user:      adam <adam%pkgsrc.org@localhost>
date:      Tue Apr 02 09:43:52 2019 +0000

description:
py-test: updated to 4.4.0

pytest 4.4.0:

Features
* async test functions are skipped and a warning is emitted when a suitable async plugin is not installed (such as pytest-asyncio or pytest-trio).
Previously async functions would not execute at all but still be marked as ?passed?.

* Include new disable_test_id_escaping_and_forfeit_all_rights_to_community_support option to disable ascii-escaping in parametrized values. This may cause a series of problems and as the name makes 
clear, use at your own risk.
* The -p option can now be used to early-load plugins also by entry-point name, instead of just by module name.
This makes it possible to early load external plugins like pytest-cov in the command-line:
pytest -p pytest_cov

* The --pdbcls option handles classes via module attributes now (e.g. pdb:pdb.Pdb with pdb++), and its validation was improved.
* The testpaths configuration option is now displayed next to the rootdir and inifile lines in the pytest header if the option is in effect, i.e., directories or file names were not explicitly passed 
in the command line.
Also, inifile is only displayed if there?s a configuration file, instead of an empty inifile: string.

* Doctests can be skipped now dynamically using pytest.skip().
* Internal refactorings have been made in order to make the implementation of the pytest-subtests plugin possible, which adds unittest sub-test support and a new subtests fixture as discussed in 1367.
For details on the internal refactorings, please see the details on the related PR.

* pytester?s LineMatcher asserts that the passed lines are a sequence.
* Handle -p plug after -p no:plug.
This can be used to override a blocked plugin (e.g. in ?addopts?) from the command line etc.

* Output capturing is handled correctly when only capturing via fixtures (capsys, capfs) with pdb.set_trace().
* pytester sets $HOME and $USERPROFILE to the temporary directory during test runs.
This ensures to not load configuration files from the real user?s home directory.

* Namespace packages are handled better with monkeypatch.syspath_prepend and testdir.syspathinsert (via pkg_resources.fixup_namespace_packages).
* The stepwise plugin reports status information now.
* If a setup.cfg file contains [tool:pytest] and also the no longer supported [pytest] section, pytest will use [tool:pytest] ignoring [pytest]. Previously it would unconditionally error out.
This makes it simpler for plugins to support old pytest versions.

Bug Fixes
* Fix bug where fixtures requested dynamically via request.getfixturevalue() might be teardown before the requesting fixture.
* pytester unsets PYTEST_ADDOPTS now to not use outer options with testdir.runpytest().
* Use the correct modified time for years after 2038 in rewritten .pyc files.
* Fix line offsets with ScopeMismatch errors.
* -p no:plugin is handled correctly for default (internal) plugins now, e.g. with -p no:capture.
Previously they were loaded (imported) always, making e.g. the capfd fixture available.

* The pdb quit command is handled properly when used after the debug command with pdb++.
* Fix the interpretation of -qq option where it was being considered as -v instead.
* outcomes.Exit is not swallowed in assertrepr_compare anymore.
* Close logging?s file handler explicitly when the session finishes.
* Fix line offset with mark collection error (off by one).

Improved Documentation
* Update docs for pytest_cmdline_parse hook to note availability liminations
Trivial/Internal Changes
* pluggy>=0.9 is now required.
* funcsigs>=1.0 is now required for Python 2.7.
* Some left-over internal code related to yield tests has been removed.
* Remove internally unused anypython fixture from the pytester plugin.
* Remove deprecated Sphinx directive, add_description_unit(), pin sphinx-removed-in to >= 0.2.0 to support Sphinx 2.0.
* Fix pytest tests invocation with custom PYTHONPATH.
* New pytest_report_to_serializable and pytest_report_from_serializable experimental hooks.
These hooks will be used by pytest-xdist, pytest-subtests, and the replacement for resultlog to serialize and customize reports.
They are experimental, meaning that their details might change or even be removed completely in future patch releases without warning.

Feedback is welcome from plugin authors and users alike.

* Collector.repr_failure respects the --tb option, but only defaults to short now (with auto).

diffstat:

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

diffs (45 lines):

diff -r 51df6b335632 -r 3b685b21edfb devel/py-test/Makefile
--- a/devel/py-test/Makefile    Tue Apr 02 09:40:30 2019 +0000
+++ b/devel/py-test/Makefile    Tue Apr 02 09:43:52 2019 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.75 2019/03/13 08:54:21 adam Exp $
+# $NetBSD: Makefile,v 1.76 2019/04/02 09:43:52 adam Exp $
 
-DISTNAME=      pytest-4.3.1
+DISTNAME=      pytest-4.4.0
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest/}
@@ -14,7 +14,7 @@
 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.7:../../devel/py-pluggy
+DEPENDS+=      ${PYPKGPREFIX}-pluggy>=0.9:../../devel/py-pluggy
 DEPENDS+=      ${PYPKGPREFIX}-py>=1.5.0:../../devel/py-py
 DEPENDS+=      ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
 DEPENDS+=      ${PYPKGPREFIX}-six>=1.10.0:../../lang/py-six
@@ -25,7 +25,7 @@
 
 .include "../../lang/python/pyversion.mk"
 .if ${_PYTHON_VERSION} == 27
-DEPENDS+=      ${PYPKGPREFIX}-funcsigs-[0-9]*:../../devel/py-funcsigs
+DEPENDS+=      ${PYPKGPREFIX}-funcsigs>=1.0:../../devel/py-funcsigs
 TEST_DEPENDS+= ${PYPKGPREFIX}-mock-[0-9]*:../../devel/py-mock
 .endif
 .if ${_PYTHON_VERSION} < 36
diff -r 51df6b335632 -r 3b685b21edfb devel/py-test/distinfo
--- a/devel/py-test/distinfo    Tue Apr 02 09:40:30 2019 +0000
+++ b/devel/py-test/distinfo    Tue Apr 02 09:43:52 2019 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.68 2019/03/13 08:54:21 adam Exp $
+$NetBSD: distinfo,v 1.69 2019/04/02 09:43:52 adam Exp $
 
-SHA1 (pytest-4.3.1.tar.gz) = 8402d9f4dffa665270edc61d9f505a1e0cb644e3
-RMD160 (pytest-4.3.1.tar.gz) = 640a1975599f34515cc15f056aeec5f13cc8081f
-SHA512 (pytest-4.3.1.tar.gz) = 5c76100b9efc9176803807a54ff25bfaba065fe3e8fea28b9b2f3ade289056d174e0cc4e1f399eba4ee8642e8990f43f5dc68b59cf55b7d81a43cd7cb363f542
-Size (pytest-4.3.1.tar.gz) = 917608 bytes
+SHA1 (pytest-4.4.0.tar.gz) = 17a5267b86b2103cc9c47e6598be2f9a477eba17
+RMD160 (pytest-4.4.0.tar.gz) = e5f897a6a3e1dbb22c83b38329b588ba0716156d
+SHA512 (pytest-4.4.0.tar.gz) = c3e2f75434bdf712d1773eb9220c4258a7c57f92c8172033989e6bb78cfa8e2198e9fecce8daf27935e8eb71f416fcdc1a6a9a135cf8c925fbfaeaf80f616411
+Size (pytest-4.4.0.tar.gz) = 931197 bytes



Home | Main Index | Thread Index | Old Index