Pytest

Latest version: v8.2.0

Safety actively analyzes 630254 Python packages for vulnerabilities to keep your Python projects secure.

Scan your dependencies

Page 12 of 33

4.6.6

=========================

Bug Fixes
---------

- :issue:`5523`: Fixed using multiple short options together in the command-line (for example ``-vs``) in Python 3.8+.


- :issue:`5537`: Replace ``importlib_metadata`` backport with ``importlib.metadata`` from the
standard library on Python 3.8+.


- :issue:`5806`: Fix "lexer" being used when uploading to bpaste.net from ``--pastebin`` to "text".


- :issue:`5902`: Fix warnings about deprecated ``cmp`` attribute in ``attrs>=19.2``.



Trivial/Internal Changes
------------------------

- :issue:`5801`: Fixes python version checks (detected by ``flake8-2020``) in case python4 becomes a thing.

4.6.5

=========================

Bug Fixes
---------

- :issue:`4344`: Fix RuntimeError/StopIteration when trying to collect package with "__init__.py" only.


- :issue:`5478`: Fix encode error when using unicode strings in exceptions with ``pytest.raises``.


- :issue:`5524`: Fix issue where ``tmp_path`` and ``tmpdir`` would not remove directories containing files marked as read-only,
which could lead to pytest crashing when executed a second time with the ``--basetemp`` option.


- :issue:`5547`: ``--step-wise`` now handles ``xfail(strict=True)`` markers properly.


- :issue:`5650`: Improved output when parsing an ini configuration file fails.

4.6.4

=========================

Bug Fixes
---------

- :issue:`5404`: Emit a warning when attempting to unwrap a broken object raises an exception,
for easier debugging (:issue:`5080`).


- :issue:`5444`: Fix ``--stepwise`` mode when the first file passed on the command-line fails to collect.


- :issue:`5482`: Fix bug introduced in 4.6.0 causing collection errors when passing
more than 2 positional arguments to ``pytest.mark.parametrize``.


- :issue:`5505`: Fix crash when discovery fails while using ``-p no:terminal``.

4.6.3

=========================

Bug Fixes
---------

- :issue:`5383`: ``-q`` has again an impact on the style of the collected items
(``--collect-only``) when ``--log-cli-level`` is used.


- :issue:`5389`: Fix regressions of :pull:`5063` for ``importlib_metadata.PathDistribution`` which have their ``files`` attribute being ``None``.


- :issue:`5390`: Fix regression where the ``obj`` attribute of ``TestCase`` items was no longer bound to methods.

4.6.2

=========================

Bug Fixes
---------

- :issue:`5370`: Revert unrolling of ``all()`` to fix ``NameError`` on nested comprehensions.


- :issue:`5371`: Revert unrolling of ``all()`` to fix incorrect handling of generators with ``if``.


- :issue:`5372`: Revert unrolling of ``all()`` to fix incorrect assertion when using ``all()`` in an expression.

4.6.1

=========================

Bug Fixes
---------

- :issue:`5354`: Fix ``pytest.mark.parametrize`` when the argvalues is an iterator.


- :issue:`5358`: Fix assertion rewriting of ``all()`` calls to deal with non-generators.

Page 12 of 33

© 2024 Safety CLI Cybersecurity Inc. All Rights Reserved.