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



details:   https://anonhg.NetBSD.org/pkgsrc/rev/5d494a685bc7
branches:  trunk
changeset: 375038:5d494a685bc7
user:      adam <adam%pkgsrc.org@localhost>
date:      Fri Feb 02 11:53:22 2018 +0000

description:
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:

 devel/py-test/Makefile |   4 ++--
 devel/py-test/distinfo |  10 +++++-----
 2 files changed, 7 insertions(+), 7 deletions(-)

diffs (27 lines):

diff -r 73d7cefa6ece -r 5d494a685bc7 devel/py-test/Makefile
--- a/devel/py-test/Makefile    Fri Feb 02 11:51:07 2018 +0000
+++ b/devel/py-test/Makefile    Fri Feb 02 11:53:22 2018 +0000
@@ -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 -r 73d7cefa6ece -r 5d494a685bc7 devel/py-test/distinfo
--- a/devel/py-test/distinfo    Fri Feb 02 11:51:07 2018 +0000
+++ b/devel/py-test/distinfo    Fri Feb 02 11:53:22 2018 +0000
@@ -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



Home | Main Index | Thread Index | Old Index