summaryrefslogtreecommitdiff
path: root/devel/py-test
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2018-02-02 11:53:22 +0000
committeradam <adam@pkgsrc.org>2018-02-02 11:53:22 +0000
commit9d7795b9c39948cb9ce650c50f634faf3834f7d2 (patch)
treefa10ef6405a33391f5cdde6c200f2622f055962f /devel/py-test
parent16f75e73a5db434b79c998d2a1b63d2142378f59 (diff)
downloadpkgsrc-9d7795b9c39948cb9ce650c50f634faf3834f7d2.tar.gz
py-test: updated to 3.4.0
Pytest 3.4.0 Deprecations and Removals - All pytest classes now subclass object for better Python 2/3 compatibility. This should not affect user code except in very rare edge cases. Features - Introduce empty_parameter_set_mark ini option to select which mark to apply when @pytest.mark.parametrize is given an empty set of parameters. Valid options are skip (default) and xfail. Note that it is planned to change the default to xfail in future releases as this is considered less error prone. - **Incompatible change**: after community feedback the logging <https://docs.pytest.org/en/latest/logging.html>_ functionality has undergone some changes. Please consult the logging documentation <https://docs.pytest.org/en/latest/logging.html#incompatible-changes-in-pytest-3-4>_ for details. - Console output falls back to "classic" mode when capturing is disabled (-s), otherwise the output gets garbled to the point of being useless. - New pytest_runtest_logfinish <https://docs.pytest.org/en/latest/writing_plugins.html#_pytest.hookspec.pytest_runtest_logfinish>_ hook which is called when a test item has finished executing, analogous to pytest_runtest_logstart <https://docs.pytest.org/en/latest/writing_plugins.html#_pytest.hookspec.pytest_runtest_start>_. - Improve performance when collecting tests using many fixtures. - New caplog.get_records(when) method which provides access to the captured records for the "setup", "call" and "teardown" testing stages. - New fixture record_xml_attribute that allows modifying and inserting attributes on the <testcase> xml node in JUnit reports. - The default cache directory has been renamed from .cache to .pytest_cache after community feedback that the name .cache did not make it clear that it was used by pytest. - Colorize the levelname column in the live-log output. Bug Fixes - Fix hanging pexpect test on MacOS by using flush() instead of wait(). - Fix restoring Python state after in-process pytest runs with the pytester plugin; this may break tests using multiple inprocess pytest runs if later ones depend on earlier ones leaking global interpreter changes. - Fix skipping plugin reporting hook when test aborted before plugin setup hook. - Fix progress percentage reported when tests fail during teardown. - **Incompatible change**: -o/--override option no longer eats all the remaining options, which can lead to surprising behavior: for example, pytest -o foo=1 /path/to/test.py would fail because /path/to/test.py would be considered as part of the -o command-line argument. One consequence of this is that now multiple configuration overrides need multiple -o flags: pytest -o foo=1 -o bar=2.
Diffstat (limited to 'devel/py-test')
-rw-r--r--devel/py-test/Makefile4
-rw-r--r--devel/py-test/distinfo10
2 files changed, 7 insertions, 7 deletions
diff --git a/devel/py-test/Makefile b/devel/py-test/Makefile
index a575ad3c9b8..ba09b450ee1 100644
--- a/devel/py-test/Makefile
+++ b/devel/py-test/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.42 2018/01/05 15:28:37 adam Exp $
+# $NetBSD: Makefile,v 1.43 2018/02/02 11:53:22 adam Exp $
-DISTNAME= pytest-3.3.2
+DISTNAME= pytest-3.4.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest/}
diff --git a/devel/py-test/distinfo b/devel/py-test/distinfo
index be8547c7377..2f7848d2610 100644
--- a/devel/py-test/distinfo
+++ b/devel/py-test/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.39 2018/01/05 15:28:37 adam Exp $
+$NetBSD: distinfo,v 1.40 2018/02/02 11:53:22 adam Exp $
-SHA1 (pytest-3.3.2.tar.gz) = 84205e6e61ee1e80ce50dc6e15134ec8ff9eae37
-RMD160 (pytest-3.3.2.tar.gz) = 7c00efa071fe254e68f030f5def0991369e0ee1b
-SHA512 (pytest-3.3.2.tar.gz) = a2fadf30634f9c2bf88a7d6d4f306efff91e58d6bee04a7021e955ceaad6da61ddeab2fa40265579bfbe8dacc279eda8d3b9bc56c80c171b6feffcda6a977eca
-Size (pytest-3.3.2.tar.gz) = 800095 bytes
+SHA1 (pytest-3.4.0.tar.gz) = 70d072bcf075e08d210aadae8ac42a817748ea25
+RMD160 (pytest-3.4.0.tar.gz) = 4a5da71ed58d921206be35b97f9758e56ac25e6b
+SHA512 (pytest-3.4.0.tar.gz) = 5b7bb5ad10a2f0eb65ce6a199aa6f93574da133c783fe8a18a26a24ad68682744d1a22c3612efa77b51e296a39fbaefaed268800e30b8fa6d1d79a01eae202a4
+Size (pytest-3.4.0.tar.gz) = 812403 bytes