Skip to content
This repository was archived by the owner on Nov 11, 2025. It is now read-only.
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
7 changes: 7 additions & 0 deletions CHANGELOG.rst
Original file line number Diff line number Diff line change
@@ -1,6 +1,13 @@
CHANGELOG
=========

0.12.1 (2024-03-07)
-------------------

* Fixed compatibility with upcoming pytest ``8.1.x``. (`#125`_).

.. _#125: https://github.com/pytest-dev/pytest-subtests/issues/125

0.12.0 (2024-03-06)
-------------------

Expand Down
5 changes: 3 additions & 2 deletions src/pytest_subtests/plugin.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,12 +13,12 @@
from unittest import TestCase

import attr
import pluggy
import pytest
from _pytest._code import ExceptionInfo
from _pytest.capture import CaptureFixture
from _pytest.capture import FDCapture
from _pytest.capture import SysCapture
from _pytest.config.compat import PathAwareHookProxy
from _pytest.fixtures import SubRequest
from _pytest.logging import catching_logs
from _pytest.logging import LogCaptureHandler
Expand All @@ -28,6 +28,7 @@
from _pytest.runner import check_interactive_exception
from _pytest.unittest import TestCaseFunction


if TYPE_CHECKING:
from types import TracebackType

Expand Down Expand Up @@ -165,7 +166,7 @@ def subtests(request: SubRequest) -> Generator[SubTests, None, None]:

@attr.s
class SubTests:
ihook: PathAwareHookProxy = attr.ib()
ihook: pluggy.HookRelay = attr.ib()
suspend_capture_ctx: Callable[[], ContextManager] = attr.ib()
request: SubRequest = attr.ib()

Expand Down