Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix logreport #10496

Closed
wants to merge 26 commits into from
Closed
Show file tree
Hide file tree
Changes from 18 commits
Commits
Show all changes
26 commits
Select commit Hold shift + click to select a range
3af3f56
Prepare release version 7.2.0
pytestbot Oct 23, 2022
ac4e3cc
Merge pull request #10412 from pytest-dev/release-7.2.0
RonnyPfannschmidt Oct 25, 2022
5c6a9a6
[7.2.x] upgrade pygments-pytest for 7.2.x coloring
asottile Oct 25, 2022
1f08cd7
[7.2.x] Add the PyPI classifier for Python 3.11
bryant1410 Oct 25, 2022
651c7bf
[7.2.x] Edit changelog for 7.2.0 (#10429)
github-actions[bot] Oct 25, 2022
6a4a0f4
Merge pull request #10430 from pytest-dev/backport-10425-to-7.2.x
nicoddemus Oct 25, 2022
8606feb
Merge pull request #10431 from pytest-dev/backport-10426-to-7.2.x
nicoddemus Oct 25, 2022
23bbd5a
Merge pull request #10417 from nicoddemus/publish-action-pin
nicoddemus Oct 25, 2022
eff2e2d
Merge pull request #10432 from nicoddemus/backport-10417
nicoddemus Oct 25, 2022
6a5076d
[7.2.x] Fix 'importlib.abc.TraversableResources' deprecation warning …
github-actions[bot] Oct 31, 2022
b2271af
[7.2.x] Remove done trainings (#10472)
github-actions[bot] Nov 4, 2022
dbd4c5f
[7.2.x] Fix test_raising_repr test
nicoddemus Nov 9, 2022
47d6adf
Merge pull request #10489 from pytest-dev/backport-10488-to-7.2.x
nicoddemus Nov 9, 2022
512fc73
fix logreport
anb76ru Nov 12, 2022
bcd6c8e
fix method pytest_runtest_logreport
anb76ru Nov 15, 2022
5bee912
fix double stdout
anb76ru Nov 15, 2022
45b7df3
Revert "fix double stdout"
anb76ru Nov 15, 2022
30e39f5
fix double_stdout 2
anb76ru Nov 15, 2022
3587419
fix
anb76ru Nov 28, 2022
534feec
fix logreport
anb76ru Nov 12, 2022
c178ff5
fix method pytest_runtest_logreport
anb76ru Nov 15, 2022
0caf7db
fix double stdout
anb76ru Nov 15, 2022
9c91c96
Revert "fix double stdout"
anb76ru Nov 15, 2022
e33fd03
fix double_stdout 2
anb76ru Nov 15, 2022
c17297d
fix
anb76ru Nov 28, 2022
a6e258a
Merge branch '7.2.0/anb76ru/fix_logreport' of https://github.com/anb7…
anb76ru Nov 28, 2022
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
3 changes: 1 addition & 2 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -43,9 +43,8 @@ jobs:
python -m build

- name: Publish package to PyPI
uses: pypa/gh-action-pypi-publish@master
uses: pypa/gh-action-pypi-publish@release/v1
with:
user: __token__
password: ${{ secrets.pypi_token }}

- name: Publish GitHub release notes
Expand Down
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ repos:
rev: v2.1.0
hooks:
- id: setup-cfg-fmt
args: ["--max-py-version=3.10", "--include-version-classifiers"]
args: ["--max-py-version=3.11", "--include-version-classifiers"]
- repo: https://github.com/pre-commit/pygrep-hooks
rev: v1.9.0
hooks:
Expand Down
1 change: 0 additions & 1 deletion changelog/10012.deprecation.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/10150.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/10196.trivial.rst

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/10218.improvement.rst

This file was deleted.

3 changes: 0 additions & 3 deletions changelog/10313.trivial.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/10344.doc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/10381.improvement.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/10382.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/10396.deprecation.rst

This file was deleted.

1 change: 1 addition & 0 deletions changelog/10452.bugfix.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
Fix 'importlib.abc.TraversableResources' deprecation warning in Python 3.12.
1 change: 0 additions & 1 deletion changelog/3426.improvement.rst

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/4562.deprecation.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/7337.improvement.rst

This file was deleted.

5 changes: 0 additions & 5 deletions changelog/7792.bugfix.rst

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/8508.improvement.rst

This file was deleted.

2 changes: 0 additions & 2 deletions changelog/8646.improvement.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9159.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9248.doc.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9291.doc.rst

This file was deleted.

3 changes: 0 additions & 3 deletions changelog/9741.improvement.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9742.improvement.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9823.improvement.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9873.improvement.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9877.bugfix.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9883.improvement.rst

This file was deleted.

10 changes: 0 additions & 10 deletions changelog/9886.deprecation.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9897.feature.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9906.trivial.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9910.trivial.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9920.improvement.rst

This file was deleted.

4 changes: 0 additions & 4 deletions changelog/9984.trivial.rst

This file was deleted.

1 change: 0 additions & 1 deletion changelog/9987.improvement.rst

This file was deleted.

1 change: 1 addition & 0 deletions doc/en/announce/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ Release announcements
:maxdepth: 2


release-7.2.0
release-7.1.3
release-7.1.2
release-7.1.1
Expand Down
93 changes: 93 additions & 0 deletions doc/en/announce/release-7.2.0.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
pytest-7.2.0
=======================================

The pytest team is proud to announce the 7.2.0 release!

This release contains new features, improvements, and bug fixes,
the full list of changes is available in the changelog:

https://docs.pytest.org/en/stable/changelog.html

For complete documentation, please visit:

https://docs.pytest.org/en/stable/

As usual, you can upgrade from PyPI via:

pip install -U pytest

Thanks to all of the contributors to this release:

* Aaron Berdy
* Adam Turner
* Albert Villanova del Moral
* Alice Purcell
* Anthony Sottile
* Anton Yakutovich
* Babak Keyvani
* Brandon Chinn
* Bruno Oliveira
* Chanvin Xiao
* Cheuk Ting Ho
* Chris Wheeler
* EmptyRabbit
* Ezio Melotti
* Florian Best
* Florian Bruhin
* Fredrik Berndtsson
* Gabriel Landau
* Gergely Kalmár
* Hugo van Kemenade
* James Gerity
* John Litborn
* Jon Parise
* Kevin C
* Kian Eliasi
* MatthewFlamm
* Miro Hrončok
* Nate Meyvis
* Neil Girdhar
* Nhieuvu1802
* Nipunn Koorapati
* Ofek Lev
* Paul Müller
* Paul Reece
* Pax
* Pete Baughman
* Peyman Salehi
* Philipp A
* Ran Benita
* Robert O'Shea
* Ronny Pfannschmidt
* Rowin
* Ruth Comer
* Samuel Colvin
* Samuel Gaist
* Sandro Tosi
* Shantanu
* Simon K
* Stephen Rosen
* Sviatoslav Sydorenko
* Tatiana Ovary
* Thierry Moisan
* Thomas Grainger
* Tim Hoffmann
* Tobias Diez
* Tony Narlock
* Vivaan Verma
* Wolfremium
* Zac Hatfield-Dodds
* Zach OBrien
* aizpurua23a
* gresm
* holesch
* itxasos23
* johnkangw
* skhomuti
* sommersoft
* wodny
* zx.qiu


Happy testing,
The pytest Development Team
27 changes: 15 additions & 12 deletions doc/en/builtin.rst
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a

Values can be any object handled by the json stdlib module.

capsys -- .../_pytest/capture.py:878
capsys -- .../_pytest/capture.py:905
Enable text capturing of writes to ``sys.stdout`` and ``sys.stderr``.

The captured output is made available via ``capsys.readouterr()`` method
Expand All @@ -51,7 +51,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
captured = capsys.readouterr()
assert captured.out == "hello\n"

capsysbinary -- .../_pytest/capture.py:906
capsysbinary -- .../_pytest/capture.py:933
Enable bytes capturing of writes to ``sys.stdout`` and ``sys.stderr``.

The captured output is made available via ``capsysbinary.readouterr()``
Expand All @@ -69,7 +69,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
captured = capsysbinary.readouterr()
assert captured.out == b"hello\n"

capfd -- .../_pytest/capture.py:934
capfd -- .../_pytest/capture.py:961
Enable text capturing of writes to file descriptors ``1`` and ``2``.

The captured output is made available via ``capfd.readouterr()`` method
Expand All @@ -87,7 +87,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
captured = capfd.readouterr()
assert captured.out == "hello\n"

capfdbinary -- .../_pytest/capture.py:962
capfdbinary -- .../_pytest/capture.py:989
Enable bytes capturing of writes to file descriptors ``1`` and ``2``.

The captured output is made available via ``capfd.readouterr()`` method
Expand All @@ -105,7 +105,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
captured = capfdbinary.readouterr()
assert captured.out == b"hello\n"

doctest_namespace [session scope] -- .../_pytest/doctest.py:735
doctest_namespace [session scope] -- .../_pytest/doctest.py:738
Fixture that returns a :py:class:`dict` that will be injected into the
namespace of doctests.

Expand All @@ -119,7 +119,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a

For more details: :ref:`doctest_namespace`.

pytestconfig [session scope] -- .../_pytest/fixtures.py:1344
pytestconfig [session scope] -- .../_pytest/fixtures.py:1351
Session-scoped fixture that returns the session's :class:`pytest.Config`
object.

Expand Down Expand Up @@ -163,7 +163,10 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
record_testsuite_property("ARCH", "PPC")
record_testsuite_property("STORAGE_TYPE", "CEPH")

``name`` must be a string, ``value`` will be converted to a string and properly xml-escaped.
:param name:
The property name.
:param value:
The property value. Will be converted to a string.

.. warning::

Expand Down Expand Up @@ -193,7 +196,7 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a

.. _legacy_path: https://py.readthedocs.io/en/latest/path.html

caplog -- .../_pytest/logging.py:487
caplog -- .../_pytest/logging.py:491
Access and control log capturing.

Captured logs are available through the following properties/methods::
Expand Down Expand Up @@ -228,16 +231,16 @@ For information about fixtures, see :ref:`fixtures`. To see a complete list of a
To undo modifications done by the fixture in a contained scope,
use :meth:`context() <pytest.MonkeyPatch.context>`.

recwarn -- .../_pytest/recwarn.py:29
recwarn -- .../_pytest/recwarn.py:30
Return a :class:`WarningsRecorder` instance that records all warnings emitted by test functions.

See https://docs.python.org/library/how-to/capture-warnings.html for information
See https://docs.pytest.org/en/latest/how-to/capture-warnings.html for information
on warning categories.

tmp_path_factory [session scope] -- .../_pytest/tmpdir.py:184
tmp_path_factory [session scope] -- .../_pytest/tmpdir.py:188
Return a :class:`pytest.TempPathFactory` instance for the test session.

tmp_path -- .../_pytest/tmpdir.py:199
tmp_path -- .../_pytest/tmpdir.py:203
Return a temporary directory path object which is unique to each test
function invocation, created as a sub directory of the base temporary
directory.
Expand Down