Skip to content

Commit

Permalink
Merge pull request #126 from pytest-dev/release-0.12.1
Browse files Browse the repository at this point in the history
Fix compatibility with pytest 8.1
  • Loading branch information
nicoddemus authored Mar 7, 2024
2 parents 3ea1b44 + f55c65c commit 69f52da
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
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

0 comments on commit 69f52da

Please sign in to comment.