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

branches:  trunk
changeset: 311194:1d657c786642
user:      adam <>
date:      Sun Aug 05 10:17:47 2018 +0000

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.

- 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 file is created in .pytest_cache to make it clear why the directory exists.


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

diffs (75 lines):

diff -r 75d91a0ff1e5 -r 1d657c786642 devel/py-test/Makefile
--- a/devel/py-test/Makefile    Sun Aug 05 10:12:47 2018 +0000
+++ b/devel/py-test/Makefile    Sun Aug 05 10:17:47 2018 +0000
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.51 2018/07/05 06:48:20 adam Exp $
+# $NetBSD: Makefile,v 1.52 2018/08/05 10:17:47 adam Exp $
-DISTNAME=      pytest-3.6.3
+DISTNAME=      pytest-3.7.1
 CATEGORIES=    devel python
@@ -12,7 +12,7 @@
 DEPENDS+=      ${PYPKGPREFIX}-atomicwrites>=1.0:../../devel/py-atomicwrites
 DEPENDS+=      ${PYPKGPREFIX}-attrs>=17.4.0:../../devel/py-attrs
-#DEPENDS+=     ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
+DEPENDS+=      ${PYPKGPREFIX}-expat-[0-9]*:../../textproc/py-expat
 DEPENDS+=      ${PYPKGPREFIX}-more-itertools>=4.0.0:../../devel/py-more-itertools
 DEPENDS+=      ${PYPKGPREFIX}-pluggy>=0.5:../../devel/py-pluggy
 DEPENDS+=      ${PYPKGPREFIX}-py>=1.5.0:../../devel/py-py
diff -r 75d91a0ff1e5 -r 1d657c786642 devel/py-test/PLIST
--- a/devel/py-test/PLIST       Sun Aug 05 10:12:47 2018 +0000
+++ b/devel/py-test/PLIST       Sun Aug 05 10:17:47 2018 +0000
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.11 2018/06/21 06:41:14 adam Exp $
+@comment $NetBSD: PLIST,v 1.12 2018/08/05 10:17:47 adam Exp $
@@ -71,6 +71,9 @@
@@ -119,6 +122,9 @@
@@ -131,6 +137,9 @@
diff -r 75d91a0ff1e5 -r 1d657c786642 devel/py-test/distinfo
--- a/devel/py-test/distinfo    Sun Aug 05 10:12:47 2018 +0000
+++ b/devel/py-test/distinfo    Sun Aug 05 10:17:47 2018 +0000
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.48 2018/07/05 06:48:20 adam Exp $
+$NetBSD: distinfo,v 1.49 2018/08/05 10:17:47 adam Exp $
-SHA1 (pytest-3.6.3.tar.gz) = 6c6026e000d4463bf9b0399a63567b75a8faa4c2
-RMD160 (pytest-3.6.3.tar.gz) = 28cdd377a030f53f07a9ead251d18608ca91ffdd
-SHA512 (pytest-3.6.3.tar.gz) = e18d8e972cb1b05b037b9441eea5981ce036d8e2c2bab80f6e50f283df9bd08740296133990424cf78449f6d3d2fbd1d59709770aa972af99fe061583f2d79a7
-Size (pytest-3.6.3.tar.gz) = 830949 bytes
+SHA1 (pytest-3.7.1.tar.gz) = eaf3f55e08befbd9b7a56fcea8bb4cdc177edde3
+RMD160 (pytest-3.7.1.tar.gz) = 184a2446c82f9925f257a263796158bf88024b39
+SHA512 (pytest-3.7.1.tar.gz) = 703e52ca1400aeb6e68c802027f4c9f6d9079e3808cbeba730992e062cc1d5b53e5c1fa4bb3a98d97d2ed2b14fd1d5d1d191c970e44be382dc09b03a70f27f8b
+Size (pytest-3.7.1.tar.gz) = 845094 bytes

Home | Main Index | Thread Index | Old Index