Skip to content

Fixed error message prints function decorators when using assert in Python 3.9 and above.#9359

Merged
bluetech merged 3 commits into
pytest-dev:mainfrom
yuvalshi0:fix_flat_decorator_list
Dec 7, 2021
Merged

Fixed error message prints function decorators when using assert in Python 3.9 and above.#9359
bluetech merged 3 commits into
pytest-dev:mainfrom
yuvalshi0:fix_flat_decorator_list

Conversation

@yuvalshi0

Copy link
Copy Markdown
Member

Closes #9355

@bluetech bluetech left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks @yuvalshi0, excellent investigation and PR. I only have a suggestion to add a comment, but it looks good to me!

Comment thread src/_pytest/_code/source.py
@bluetech bluetech merged commit dc70915 into pytest-dev:main Dec 7, 2021
@nicoddemus

Copy link
Copy Markdown
Member

Does this need to be backported to 7.0.x?

@bluetech

bluetech commented Dec 7, 2021

Copy link
Copy Markdown
Member

Yes, I'll backport it later if no one beats me to it.

@bluetech bluetech added the needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch label Dec 7, 2021
nicoddemus pushed a commit to nicoddemus/pytest that referenced this pull request Dec 7, 2021
@nicoddemus

Copy link
Copy Markdown
Member

No worries, done it in #9381. 👍

@nicoddemus nicoddemus added backported and removed needs backport applied to PRs, indicates that it should be ported to the current bug-fix branch labels Dec 7, 2021
imgbot Bot pushed a commit to kkipngenokoech/pytest that referenced this pull request Apr 18, 2026
imgbot Bot pushed a commit to kkipngenokoech/pytest that referenced this pull request Apr 18, 2026
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.

Error message prints extra code line when using assert in python3.9

3 participants