Subject: CVS commit: pkgsrc/devel/py-test
From: Adam Ciarcinski
Date: 2018-10-18 12:11:25
Message id: 20181018101125.32161FBEE@cvs.NetBSD.org

Log Message:
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.

Files:
RevisionActionfile
1.61modifypkgsrc/devel/py-test/Makefile
1.14modifypkgsrc/devel/py-test/PLIST
1.56modifypkgsrc/devel/py-test/distinfo