Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix usage of pytester with doctests #470

Open
wants to merge 3 commits into
base: my-master
Choose a base branch
from
Open

Conversation

blueyed
Copy link
Owner

@blueyed blueyed commented Nov 9, 2020

Use request.node.name instead of request.function.__name__:
request.function is None with DoctestItems.

(cherry picked from / based on commit acec0b6)

Ref: pytest-dev#6802

Use `request.node.name` instead of `request.function.__name__`:
`request.function` is `None` with `DoctestItem`s.

(cherry picked from / based on commit acec0b6)

Ref: pytest-dev#6802
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant