pkgsrc-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

CVS commit: pkgsrc/devel/py-test



Module Name:    pkgsrc
Committed By:   adam
Date:           Fri Sep  7 08:55:43 UTC 2018

Modified Files:
        pkgsrc/devel/py-test: Makefile PLIST distinfo

Log Message:
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.


To generate a diff of this commit:
cvs rdiff -u -r1.57 -r1.58 pkgsrc/devel/py-test/Makefile
cvs rdiff -u -r1.12 -r1.13 pkgsrc/devel/py-test/PLIST
cvs rdiff -u -r1.52 -r1.53 pkgsrc/devel/py-test/distinfo

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: pkgsrc/devel/py-test/Makefile
diff -u pkgsrc/devel/py-test/Makefile:1.57 pkgsrc/devel/py-test/Makefile:1.58
--- pkgsrc/devel/py-test/Makefile:1.57  Thu Aug 30 10:04:44 2018
+++ pkgsrc/devel/py-test/Makefile       Fri Sep  7 08:55:43 2018
@@ -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/}

Index: pkgsrc/devel/py-test/PLIST
diff -u pkgsrc/devel/py-test/PLIST:1.12 pkgsrc/devel/py-test/PLIST:1.13
--- pkgsrc/devel/py-test/PLIST:1.12     Sun Aug  5 10:17:47 2018
+++ pkgsrc/devel/py-test/PLIST  Fri Sep  7 08:55:43 2018
@@ -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

Index: pkgsrc/devel/py-test/distinfo
diff -u pkgsrc/devel/py-test/distinfo:1.52 pkgsrc/devel/py-test/distinfo:1.53
--- pkgsrc/devel/py-test/distinfo:1.52  Thu Aug 30 10:04:44 2018
+++ pkgsrc/devel/py-test/distinfo       Fri Sep  7 08:55:43 2018
@@ -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



Home | Main Index | Thread Index | Old Index