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

Find console frame based on project path #1034

Merged
merged 1 commit into from
Apr 4, 2021

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

When opening a console during pytest interactive debugging, find the local frame based on the project path rather than the test path. This ensures the correct namespace when a test fails during logic imported from another file, such as an inherited class.

How I did it

Tweaks to pytest_exception_interact

@iamdefinitelyahuman iamdefinitelyahuman merged commit ef6291f into master Apr 4, 2021
@iamdefinitelyahuman iamdefinitelyahuman deleted the pytest-debug-frame branch April 4, 2021 23:46
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