Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions AUTHORS
Original file line number Diff line number Diff line change
Expand Up @@ -130,6 +130,7 @@ David Szotten
David Vierra
Daw-Ran Liou
Debi Mishra
Denis Cherednichenko
Denis Kirisov
Denivy Braiam Rück
Deysha Rivera
Expand Down
7 changes: 2 additions & 5 deletions doc/en/example/simple.rst
Original file line number Diff line number Diff line change
Expand Up @@ -553,12 +553,10 @@ an ``incremental`` marker which is to be used on classes:

# content of conftest.py

from typing import Dict, Tuple

import pytest

# store history of failures per test class name and per index in parametrize (if parametrize used)
_test_failed_incremental: Dict[str, Dict[Tuple[int, ...], str]] = {}
_test_failed_incremental: dict[str, dict[tuple[int, ...], str]] = {}


def pytest_runtest_makereport(item, call):
Expand Down Expand Up @@ -883,11 +881,10 @@ here is a little example implemented via a local plugin:
.. code-block:: python

# content of conftest.py
from typing import Dict
import pytest
from pytest import StashKey, CollectReport

phase_report_key = StashKey[Dict[str, CollectReport]]()
phase_report_key = StashKey[dict[str, CollectReport]]()


@pytest.hookimpl(wrapper=True, tryfirst=True)
Expand Down