Subject: CVS commit: pkgsrc/devel/py-test
From: Adam Ciarcinski
Date: 2018-03-23 09:58:00
Message id: 20180323085800.7A014FB40@cvs.NetBSD.org

Log Message:
py-test: updated to 3.5.0

3.5.0:
Deprecations and Removals
record_xml_property fixture is now deprecated in favor of the more generic \ 
record_property.
Defining pytest_plugins is now deprecated in non-top-level conftest.py files, \ 
because they “leak” to the entire directory tree.

Features
New --show-capture command-line option that allows to specify how to display \ 
captured output when tests fail: no, stdout, stderr, log or all
New --rootdir command-line option to override the rules for discovering the root \ 
directory. See customize in the documentation for details.
Fixtures are now instantiated based on their scopes, with higher-scoped fixtures
record_xml_property renamed to record_property and is now compatible with xdist, \ 
markers and any reporter. record_xml_property name is now deprecated.
New --nf, --new-first options: run new tests first followed by the rest of the \ 
tests, in both cases tests are also sorted by the file modified time, with more \ 
recent files coming first.
New --last-failed-no-failures command-line option that allows to specify the \ 
behavior of the cache plugin’s `--last-failed feature when no tests failed in \ 
the last run
New --doctest-continue-on-failure command-line option to enable doctests to show \ 
multiple failures for each snippet, instead of stopping at the first failure.
Captured log messages are added to the <system-out> tag in the generated \ 
junit xml file if the junit_logging ini option is set to system-out. If the \ 
value of this ini option is system-err`, the logs are written to \ 
``<system-err>. The default value for junit_logging is no, meaning \ 
captured logs are not written to the output file.
Allow the logging plugin to handle pytest_runtest_logstart and \ 
pytest_runtest_logfinish hooks when live logs are enabled.
Passing –log-cli-level in the command-line now automatically activates live \ 
logging.
Add command line option --deselect to allow deselection of individual tests at \ 
collection time.
Captured logs are printed before entering pdb.
Deselected item count is now shown before tests are run, e.g. collected X items \ 
/ Y deselected.
The builtin module platform is now available for use in expressions in pytest.mark.
The short test summary info section now is displayed after tracebacks and \ 
warnings in the terminal.
New --verbosity flag to set verbosity level explicitly.
pytest.approx now accepts comparing a numpy array with a scalar.

Bug Fixes
Suppress IOError when closing the temporary file used for capturing streams in \ 
Python 2.7.
Fixed clear() method on caplog fixture which cleared records, but not the text \ 
property.
During test collection, when stdin is not allowed to be read, the \ 
DontReadFromStdin object still allow itself to be iterable and resolved to an \ 
iterator without crashing.

Improved Documentation
Added a reference page to the docs.

Trivial/Internal Changes
Change minimum requirement of attrs to 17.4.0.
Renamed example directories so all tests pass when ran from the base directory.
Internal mark.py module has been turned into a package.
pytest now depends on the more_itertools package.
Added warning when [pytest] section is used in a .cfg file passed with -c
nodeids can now be passed explicitly to FSCollector and Node constructors.
Internal refactoring of FormattedExcinfo to use attrs facilities and remove old \ 
support code for legacy Python versions.
Refactoring to unify how verbosity is handled internally.
Internal refactoring to better integrate with argparse.
Fix a python example when calling a fixture in doc/en/usage.rst

Files:
RevisionActionfile
1.46modifypkgsrc/devel/py-test/Makefile
1.10modifypkgsrc/devel/py-test/PLIST
1.43modifypkgsrc/devel/py-test/distinfo