Skip to content

Correct frame for locals/globals with debugging console#523

Merged
iamdefinitelyahuman merged 1 commit intomasterfrom
fix-pytest-interactive
May 16, 2020
Merged

Correct frame for locals/globals with debugging console#523
iamdefinitelyahuman merged 1 commit intomasterfrom
fix-pytest-interactive

Conversation

@iamdefinitelyahuman
Copy link
Copy Markdown
Member

What I did

Ensure the correct traceback frame is used when adding locals and globals to the debugging console.

How I did it

Search call.excinfo.traceback to find the last frame where path is equal to the active test's path.

How to verify it

Load the console on a failed test

@iamdefinitelyahuman iamdefinitelyahuman merged commit 2811d43 into master May 16, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-pytest-interactive branch May 16, 2020 23:09
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