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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/4df4610ed3bb
branches:  trunk
changeset: 324388:4df4610ed3bb
user:      adam <adam%pkgsrc.org@localhost>
date:      Thu Oct 18 10:11:25 2018 +0000

description:
py-test: updated to 3.9.1

pytest 3.9.1:
Features
- For test-suites containing test classes, the information about the subclassed module is now output only if a higher verbosity level is specified (at least ?-vv?).

pytest 3.9.0:
Deprecations
- The following accesses have been documented as deprecated for years, but are now actually emitting deprecation warnings.
Access of Module, Function, Class, Instance, File and Item through Node instances. Now users will this warning:
usage of Function.Module is deprecated, please use pytest.Module instead
Users should just import pytest and access those objects using the pytest module.
request.cached_setup, this was the precursor of the setup/teardown mechanism available to fixtures. You can consult funcarg comparison section in the docs.
Using objects named "Class" as a way to customize the type of nodes that are collected in Collector subclasses has been deprecated. Users instead should use pytest_collect_make_item to customize node 
types during collection.
This issue should affect only advanced plugins who create new collection types, so if you see this warning message please contact the authors so they can change the code.
The warning that produces the message below has changed to RemovedInPytest4Warning:
getfuncargvalue is deprecated, use getfixturevalue
- Add a Deprecation warning for pytest.ensuretemp as it was deprecated since a while.

Features
- Improve usage errors messages by hiding internal details which can be distracting and noisy.
This has the side effect that some error conditions that previously raised generic errors (such as ValueError for unregistered marks) are now raising Failed exceptions.
- Improve the error displayed when a conftest.py file could not be imported.
In order to implement this, a new chain parameter was added to ExceptionInfo.getrepr to show or hide chained tracebacks in Python 3 (defaults to True).
- Add empty_parameter_set_mark=fail_at_collect ini option for raising an exception when parametrize collects an empty set.
- Log messages generated in the collection phase are shown when live-logging is enabled and/or when they are logged to a file.
- Introduce tmp_path as a fixture providing a Path object.
- Deprecation warnings are now shown even if you customize the warnings filters yourself. In the previous version any customization would override pytest?s filters and deprecation warnings would fall 
back to being hidden by default.
- Allow specification of timeout for Testdir.runpytest_subprocess() and Testdir.run().
- Add returncode argument to pytest.exit() to exit pytest with a specific return code.
- Reimplement pytest.deprecated_call using pytest.warns so it supports the match='...' keyword argument.
This has the side effect that pytest.deprecated_call now raises pytest.fail.Exception instead of AssertionError.
- Require setuptools>=30.3 and move most of the metadata to setup.cfg.

Bug Fixes
- Improve error message when test functions of unittest.TestCase subclasses use a parametrized fixture.
- request.fixturenames now correctly returns the name of fixtures created by request.getfixturevalue().
- Warning filters passed as command line options using -W now take precedence over filters defined in ini configuration files.
- Fix source reindenting by using textwrap.dedent directly.
- pytest.warn will capture previously-warned warnings in Python 2. Previously they were never raised.
- Resolve symbolic links for args.
This fixes running pytest tests/test_foo.py::test_bar, where tests is a symlink to project/app/tests: previously project/app/conftest.py would be ignored for fixtures then.
- Fix duplicate printing of internal errors when using --pdb.
- pathlib based tmpdir cleanup now correctly handles symlinks in the folder.
- Display the filename when encountering SyntaxWarning.

Improved Documentation
- Update usefixtures documentation to clarify that it can?t be used with fixture functions.
- Update fixture documentation to specify that a fixture can be invoked twice in the scope it?s defined for.
- According to unittest.rst, setUpModule and tearDownModule were not implemented, but it turns out they are. So updated the documentation for unittest.
- Add tempir testing example to CONTRIBUTING.rst guide
Trivial/Internal Changes
- The internal MarkerError exception has been removed.
- Port the implementation of tmpdir to pathlib.
- Exclude 0.00 second entries from --duration output unless -vv is passed on the command-line.
- Fixed formatting of string literals in internal tests.

diffstat:

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

diffs (49 lines):

diff -r 0093fe0d829b -r 4df4610ed3bb devel/py-test/Makefile
--- a/devel/py-test/Makefile    Thu Oct 18 10:07:18 2018 +0000
+++ b/devel/py-test/Makefile    Thu Oct 18 10:11:25 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.60 2018/10/03 09:58:11 adam Exp $
+# $NetBSD: Makefile,v 1.61 2018/10/18 10:11:25 adam Exp $
 
-DISTNAME=      pytest-3.8.2
+DISTNAME=      pytest-3.9.1
 PKGNAME=       ${PYPKGPREFIX}-${DISTNAME:S/py//}
 CATEGORIES=    devel python
 MASTER_SITES=  ${MASTER_SITE_PYPI:=p/pytest/}
diff -r 0093fe0d829b -r 4df4610ed3bb devel/py-test/PLIST
--- a/devel/py-test/PLIST       Thu Oct 18 10:07:18 2018 +0000
+++ b/devel/py-test/PLIST       Thu Oct 18 10:11:25 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.13 2018/09/07 08:55:43 adam Exp $
+@comment $NetBSD: PLIST,v 1.14 2018/10/18 10:11:25 adam Exp $
 bin/py.test-${PYVERSSUFFIX}
 bin/pytest-${PYVERSSUFFIX}
 ${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
@@ -119,9 +119,9 @@
 ${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/pathlib.py
+${PYSITELIB}/_pytest/pathlib.pyc
+${PYSITELIB}/_pytest/pathlib.pyo
 ${PYSITELIB}/_pytest/pytester.py
 ${PYSITELIB}/_pytest/pytester.pyc
 ${PYSITELIB}/_pytest/pytester.pyo
diff -r 0093fe0d829b -r 4df4610ed3bb devel/py-test/distinfo
--- a/devel/py-test/distinfo    Thu Oct 18 10:07:18 2018 +0000
+++ b/devel/py-test/distinfo    Thu Oct 18 10:11:25 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.55 2018/10/03 09:58:11 adam Exp $
+$NetBSD: distinfo,v 1.56 2018/10/18 10:11:25 adam Exp $
 
-SHA1 (pytest-3.8.2.tar.gz) = 6e28889174cfec8ca42bd470fe6168ca19aa58f9
-RMD160 (pytest-3.8.2.tar.gz) = 394d93f3186b92e10219ebd56a26c9420c4f0ff5
-SHA512 (pytest-3.8.2.tar.gz) = 5420de07ff741f64bcb7fce7bf3b5097cf63be2539c2e694c168bd824ba468ca87cb17be801b72b972ab417da98d1b5473f319afd642bf5c6c0270e3a697d016
-Size (pytest-3.8.2.tar.gz) = 869668 bytes
+SHA1 (pytest-3.9.1.tar.gz) = 6e1a08bc17f4fc6167e7375a56ed206fb26a8b43
+RMD160 (pytest-3.9.1.tar.gz) = e82820cdb4294573891835347bf6d06e2c496892
+SHA512 (pytest-3.9.1.tar.gz) = 0a3a6842fb549c8223f0ddf56ca28eb200a21a4cadf382fbcd2ab930c58d57c55c77d5869e84bd79bf611d959cba6d363ace3b5fd33d5ce44259fd580b1a9369
+Size (pytest-3.9.1.tar.gz) = 886734 bytes



Home | Main Index | Thread Index | Old Index