Path to this page:
Subject: CVS commit: pkgsrc/devel/py-test
From: Adam Ciarcinski
Date: 2019-02-01 12:52:22
Message id: 20190201115222.6B208FB16@cvs.NetBSD.org
Log Message:
py-test: updated to 4.2.0
pytest 4.2.0:
Features
* Class xunit-style functions and methods now obey the scope of autouse fixtures.
This fixes a number of surprising issues like setup_method being called before \
session-scoped autouse fixtures.
* Display a message at the end of the test session when running under Python 2.7 \
and 3.4 that pytest 5.0 will no longer support those Python versions.
* The number of selected tests now are also displayed when the -k or -m flags \
are used.
* pytest_report_teststatus hook now can also receive a config parameter.
* pytest_terminal_summary hook now can also receive a config parameter.
Bug Fixes
* --junitxml can emit XML compatible with Jenkins xUnit. junit_family INI option \
accepts legacy|xunit1, which produces old style output, and xunit2 that conforms \
more strictly to \
https://github.com/jenkinsci/xunit-plugin/blob/xunit-2.3.2/src/main/resources/org/jenkinsci/plugins/xunit/types/model/xsd/junit-10.xsd
* Improve quitting from pdb, especially with --trace.
Using q[quit] after pdb.set_trace() will quit pytest also.
* Warning summary now groups warnings by message instead of by test id.
This makes the output more compact and better conveys the general idea of how \
much code is actually generating warnings, instead of how many tests call that \
code.
* monkeypatch.delattr handles class descriptors like staticmethod/classmethod.
* Restore marks being considered keywords for keyword expressions.
* tmp_path fixture and other related ones provides resolved path (a.k.a real path)
* pytest_terminal_summary uses result from pytest_report_teststatus hook, rather \
than hardcoded strings.
* Correctly handle unittest.SkipTest exception containing non-ascii characters \
on Python 2.
* Ensure the tmpdir and the tmp_path fixtures are the same folder.
* Ensure tmp_path is always a real path.
Trivial/Internal Changes
* Use a.item() instead of the deprecated np.asscalar(a) in pytest.approx.
np.asscalar has been deprecated in numpy 1.16..
* Copy saferepr from pylib
Files: