Skip to content

Commit

Permalink
more robust tests
Browse files Browse the repository at this point in the history
  • Loading branch information
flying-sheep committed Jan 12, 2024
1 parent 6f3dcd4 commit b0cf09b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_elegant_typehints.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,10 @@ def process(fn: Callable[..., Any], *, run_napoleon: bool = False) -> list[str]:
else:
name = "???"
for listener in listeners:
if not run_napoleon and listener.handler.__name__ == "_process_docstring":
if (
not run_napoleon
and listener.handler.__module__ == "sphinx.ext.napoleon"
):
continue
listener.handler(app, "function", name, fn, None, lines)
return lines
Expand Down

0 comments on commit b0cf09b

Please sign in to comment.