Subject: CVS commit: pkgsrc/devel/py-test
From: Adam Ciarcinski
Date: 2018-08-05 12:17:47
Message id: 20180805101748.04CEEFBEC@cvs.NetBSD.org

Log Message:
py-test: updated to 3.7.1

pytest 3.7.1:

Bug Fixes
- Raise immediately if approx() is given an expected value of a type it doesn't \ 
understand (e.g. strings, nested dicts, etc.).
- Correctly represent the dimensions of an numpy array when calling repr() on \ 
approx().
- Display the absolute path if cache_dir is not relative to the rootdir instead \ 
of failing.
- Fix compatibility problem with plugins and the warning code issued by fixture \ 
functions when they are called directly.
- Fix infinite recursion in pytest.approx with arrays in numpy<1.13.
- Pin pathlib2 to >=2.2.0 as we require __fspath__ support.
- Fix TypeError when the assertion message is bytes in python 3.

pytest 3.7.0:

Deprecations and Removals
- pytest_namespace has been deprecated.
  See the documentation for pytest_namespace hook for suggestions on how to deal
  with this in plugins which use this functionality.
- Calling a fixture function directly, as opposed to request them in a test \ 
function, now issues a RemovedInPytest4Warning. It will be changed into an error \ 
in pytest 4.0.
  This is a great source of confusion to new users, which will often call the \ 
fixture functions and request them from test functions interchangeably, which \ 
breaks the fixture resolution model.

Features
- New package fixture scope: fixtures are finalized when the last test of a \ 
*package* finishes. This feature is considered **experimental**, so use it \ 
sparingly.
- Node.add_marker now supports an append=True/False parameter to determine \ 
whether the mark comes last (default) or first.
- Fixture caplog now has a messages property, providing convenient access to the \ 
format-interpolated log messages without the extra data provided by the \ 
formatter/handler.
- New --trace option to enter the debugger at the start of a test.
- Introduce pytester.copy_example as helper to do acceptance tests against \ 
examples from the project.

Bug Fixes
- Fix a bug where fixtures overridden by direct parameters (for example \ 
parametrization) were being instantiated even if they were not being used by a \ 
test.
- Fix ApproxNumpy initialisation argument mixup, abs and rel tolerances were \ 
flipped causing strange comparsion results.
  Add tests to check abs and rel tolerances for np.array and test for expecting \ 
nan with np.array()
- Fix truncated locals output in verbose mode.

Improved Documentation
- Correct the usage documentation of --last-failed-no-failures by adding the \ 
missing --last-failed argument in the presented examples, because they are \ 
misleading and lead to think that the missing argument is not needed.

Trivial/Internal Changes
- Now a README.md file is created in .pytest_cache to make it clear why the \ 
directory exists.

Files:
RevisionActionfile
1.52modifypkgsrc/devel/py-test/Makefile
1.12modifypkgsrc/devel/py-test/PLIST
1.49modifypkgsrc/devel/py-test/distinfo