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

add assertion to FixtureLookupError.formatrepr #12962

Merged
merged 2 commits into from
Nov 15, 2024

Conversation

jakkdl
Copy link
Member

@jakkdl jakkdl commented Nov 14, 2024

Broken out from #12930 where I originally was going to raise a FixtureLookupError but noticed that formatrepr crashed. I haven't researched thoroughly why it's currently making these assumptions, but it will crash if this assert doesn't hold - so thought I'd at least save some developer time in case anybody tries to use FixtureLookupError again (e.g. when #12930 turns into an error)

@jakkdl jakkdl added the skip news used on prs to opt out of the changelog requirement label Nov 14, 2024
Copy link
Member

@Zac-HD Zac-HD left a comment

Choose a reason for hiding this comment

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

Nice, thanks @jakkdl!

@Zac-HD Zac-HD added the type: refactoring internal improvements to the code label Nov 15, 2024
@Zac-HD Zac-HD merged commit 755083c into pytest-dev:main Nov 15, 2024
29 checks passed
@jakkdl jakkdl deleted the fixturelookuperror_empty_stack branch November 15, 2024 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news used on prs to opt out of the changelog requirement type: refactoring internal improvements to the code
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants