Skip to content

MockAwareDocTestFinder._find is stale #12432

Closed

Description

@jaraco

The implementation of _find has no comments:

def _find(
self, tests, obj, name, module, source_lines, globs, seen
) -> None:
if _is_mocked(obj):
return
with _patch_unwrap_mock_aware():
# Type ignored because this is a private function.
super()._find( # type:ignore[misc]
tests, obj, name, module, source_lines, globs, seen
)

Perhaps the comments in the class are related. Indeed, looking at where that method was introduced (a6988aa), it's associated with the docstring in the class.

It appears that the tests all pass with the method removed on Python 3.10 and later.

Activity

  1. self-assigned this
    on Jun 6, 2024
  2. added a commit that references this issue on Jun 7, 2024
    f941099
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions