summaryrefslogtreecommitdiff
path: root/devel/py-test
diff options
context:
space:
mode:
authoradam <adam@pkgsrc.org>2018-09-07 08:55:43 +0000
committeradam <adam@pkgsrc.org>2018-09-07 08:55:43 +0000
commit9450259cb395b9886c01e156f1a708acfe906183 (patch)
tree5e1de37c29630ac3ed59ddb72d24c4b8aba7a40c /devel/py-test
parent44b4b0acef9ff0410fcca19a1657c4238b4063fb (diff)
downloadpkgsrc-9450259cb395b9886c01e156f1a708acfe906183.tar.gz
py-test: updated to 3.8.0
pytest 3.8.0: Deprecations and Removals - Config.warn has been deprecated, it should be replaced by calls to the standard warnings.warn. Node.warn now supports two signatures: * node.warn(PytestWarning("some message")): is now the recommended way to call this function. The warning instance must be a PytestWarning or subclass instance. * node.warn("CI", "some message"): this code/message form is now deprecated and should be converted to the warning instance form above. RemovedInPytest4Warning and PytestExperimentalApiWarning are now part of the public API and should be accessed using pytest.RemovedInPytest4Warning and pytest.PytestExperimentalApiWarning. - @pytest.mark.filterwarnings second parameter is no longer regex-escaped, making it possible to actually use regular expressions to check the warning message. **Note**: regex-escaping the match string was an implementation oversight that might break test suites which depend on the old behavior. Features - Internal pytest warnings are now issued using the standard warnings module, making it possible to use the standard warnings filters to manage those warnings. This introduces PytestWarning, PytestDeprecationWarning and RemovedInPytest4Warning warning types as part of the public API. - DeprecationWarning and PendingDeprecationWarning are now shown by default if no other warning filter is configured. - Add option to disable plugin auto-loading. - Added the count option to console_output_style to enable displaying the progress as a count instead of a percentage. - Added support for 'xfailed' and 'xpassed' outcomes to the pytester.RunResult.assert_outcomes signature. - Terminal writer now takes into account unicode character width when writing out progress. - Pytest now returns with correct exit code (EXIT_USAGEERROR, 4) when called with unknown arguments. - Improve performance of assertion rewriting. - Added a blurb in usage.rst for the usage of -r flag which is used to show an extra test summary info. - Corrected type of the exceptions collection passed to xfail: raises argument accepts a tuple instead of list. Trivial/Internal Changes - Removed "run all (no recorded failures)" message printed with --failed-first and --last-failed when there are no failed tests.
Diffstat (limited to 'devel/py-test')
-rw-r--r--devel/py-test/Makefile4
-rw-r--r--devel/py-test/PLIST8
-rw-r--r--devel/py-test/distinfo10
3 files changed, 11 insertions, 11 deletions
diff --git a/devel/py-test/Makefile b/devel/py-test/Makefile
index c755aa2078d..e14903b852e 100644
--- a/devel/py-test/Makefile
+++ b/devel/py-test/Makefile
@@ -1,6 +1,6 @@
-# $NetBSD: Makefile,v 1.57 2018/08/30 10:04:44 adam Exp $
+# $NetBSD: Makefile,v 1.58 2018/09/07 08:55:43 adam Exp $
-DISTNAME= pytest-3.7.4
+DISTNAME= pytest-3.8.0
PKGNAME= ${PYPKGPREFIX}-${DISTNAME:S/py//}
CATEGORIES= devel python
MASTER_SITES= ${MASTER_SITE_PYPI:=p/pytest/}
diff --git a/devel/py-test/PLIST b/devel/py-test/PLIST
index c359a6cd76d..cb5705894e5 100644
--- a/devel/py-test/PLIST
+++ b/devel/py-test/PLIST
@@ -1,4 +1,4 @@
-@comment $NetBSD: PLIST,v 1.12 2018/08/05 10:17:47 adam Exp $
+@comment $NetBSD: PLIST,v 1.13 2018/09/07 08:55:43 adam Exp $
bin/py.test-${PYVERSSUFFIX}
bin/pytest-${PYVERSSUFFIX}
${PYSITELIB}/${EGG_INFODIR}/PKG-INFO
@@ -71,9 +71,6 @@ ${PYSITELIB}/_pytest/deprecated.pyo
${PYSITELIB}/_pytest/doctest.py
${PYSITELIB}/_pytest/doctest.pyc
${PYSITELIB}/_pytest/doctest.pyo
-${PYSITELIB}/_pytest/experiments.py
-${PYSITELIB}/_pytest/experiments.pyc
-${PYSITELIB}/_pytest/experiments.pyo
${PYSITELIB}/_pytest/fixtures.py
${PYSITELIB}/_pytest/fixtures.pyc
${PYSITELIB}/_pytest/fixtures.pyo
@@ -164,6 +161,9 @@ ${PYSITELIB}/_pytest/tmpdir.pyo
${PYSITELIB}/_pytest/unittest.py
${PYSITELIB}/_pytest/unittest.pyc
${PYSITELIB}/_pytest/unittest.pyo
+${PYSITELIB}/_pytest/warning_types.py
+${PYSITELIB}/_pytest/warning_types.pyc
+${PYSITELIB}/_pytest/warning_types.pyo
${PYSITELIB}/_pytest/warnings.py
${PYSITELIB}/_pytest/warnings.pyc
${PYSITELIB}/_pytest/warnings.pyo
diff --git a/devel/py-test/distinfo b/devel/py-test/distinfo
index 1216356d5ee..6c6f1242952 100644
--- a/devel/py-test/distinfo
+++ b/devel/py-test/distinfo
@@ -1,6 +1,6 @@
-$NetBSD: distinfo,v 1.52 2018/08/30 10:04:44 adam Exp $
+$NetBSD: distinfo,v 1.53 2018/09/07 08:55:43 adam Exp $
-SHA1 (pytest-3.7.4.tar.gz) = aaf8cb26f5fda6da24250c9454670ef4c0fb184c
-RMD160 (pytest-3.7.4.tar.gz) = b54b1f8fe9f2dbdebc36b87d2fe1b44b37bc9f97
-SHA512 (pytest-3.7.4.tar.gz) = b62419ebcc64b470d429f093c2434ca842f7171164e3f5a37bb0cc8f5da04fa52f096710f167d15a77df128a0f6f79f16e4f4f00ffa22b26111ecfe8d00f0c50
-Size (pytest-3.7.4.tar.gz) = 851863 bytes
+SHA1 (pytest-3.8.0.tar.gz) = 62574385ba916f8e86d7d6e03b720dea73150a78
+RMD160 (pytest-3.8.0.tar.gz) = 88fea5610b6497595f893ff133e5272cd14c53aa
+SHA512 (pytest-3.8.0.tar.gz) = 26efe2bcd6c86c55cb17a17ad3cfe0762ba5d61adf9830fe5780c0c90df65bbeb2346abb8310c6123c308ed0e641d4cf325ca9ac16dcd8994b6a636bcfd386a4
+Size (pytest-3.8.0.tar.gz) = 865922 bytes