Accepting request 1100056 from devel:languages:python:pytest

Automatic submission by obs-autosubmit

OBS-URL: https://build.opensuse.org/request/show/1100056
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pytest?expand=0&rev=78
This commit is contained in:
Ana Guerrero 2023-07-27 14:50:35 +00:00 committed by Git OBS Bridge
commit d408a413e7
4 changed files with 64 additions and 4 deletions

View File

@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:ee990a3cc55ba808b80795a79944756f315c67c12b56abd3ac993a7b8c17030b
size 1338457

3
pytest-7.4.0.tar.gz Normal file
View File

@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:b4bf8c45bd59934ed84001ad51e11b4ee40d40a1229d2c79f9c592b0a3f6bd8a
size 1349733

View File

@ -1,3 +1,63 @@
-------------------------------------------------------------------
Sat Jul 15 15:04:08 UTC 2023 - Dirk Müller <dmueller@suse.com>
- update to 7.4.0:
* Added
:func:`ExceptionInfo.from_exception()
<pytest.ExceptionInfo.from_exception>`, a simpler way to
create an :class:`~pytest.ExceptionInfo` from an exception.
This can replace :func:`ExceptionInfo.from_exc_info()
<pytest.ExceptionInfo.from_exc_info()>` for most uses.
* Update test log report annotation
to named tuple and fixed inconsistency in docs for
:hook:`pytest_report_teststatus` hook.
* When an exception traceback to be
displayed is completely filtered out (by mechanisms such as
``__tracebackhide__``, internal frames, and similar), now
only the exception string and the following message are
shown:
"All traceback entries are hidden. Pass `--full-trace` to see
hidden and internal frames.".
* Improved verbose output (``-vv``)
of ``skip`` and ``xfail`` reasons by performing text wrapping
while leaving a clear margin for progress output.
* Added ``TerminalReporter.wrap_write()`` as a helper for that.
* Added handling of ``%f``
directive to print microseconds in log format options, such
as ``log-date-format``.
* Added the underlying exception to the cache provider's path
creation and write warning messages.
* Added warning when :confval:`testpaths` is set, but paths are
not found by glob.
In this case, pytest will fall back to searching from the
current directory.
* When `--confcutdir` is not
specified, and there is no config file present, the conftest
cutoff directory (`--confcutdir`) is now set to the
:ref:`rootdir <rootdir>`.
* Previously in such cases, `conftest.py` files would be probed
all the way to the root directory of the filesystem.
* If you are badly affected by this change, consider adding an
empty config file to your desired cutoff directory, or
explicitly set `--confcutdir`.
* The :confval:`norecursedirs`
check is now performed in a :hook:`pytest_ignore_collect`
implementation, so plugins can affect it.
* If after updating to this version you see that your
`norecursedirs` setting is not being respected,
* it means that a conftest or a plugin you use has a bad
`pytest_ignore_collect` implementation.
* Most likely, your hook returns `False` for paths it does not
want to ignore which ends the processing and doesn't allow
other plugins, including pytest itself, to ignore the path.
* The fix is to return `None` instead of `False` for paths your
hook doesn't want to ignore.
* :func:`caplog.set_level()
<pytest.LogCaptureFixture.set_level>` and
:func:`caplog.at_level() <pytest.LogCaptureFixture.at_level>`
will temporarily enable the requested ``level`` if ``level``
was disabled globally via ``logging.disable(LEVEL)``.
-------------------------------------------------------------------
Mon Jun 19 20:12:27 UTC 2023 - Dirk Müller <dmueller@suse.com>

View File

@ -33,7 +33,7 @@
%{?sle15_python_module_pythons}
Name: python-pytest%{psuffix}
Version: 7.3.2
Version: 7.4.0
Release: 0
Summary: Simple powerful testing with Python
License: MIT