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: unknown test when attempting to enter console #834

Merged
merged 1 commit into from
Nov 2, 2020

Conversation

iamdefinitelyahuman
Copy link
Member

What I did

Fix an unhandled exception when attempting to use --interactive and a test contains a syntax error.

How I did it

If a test cannot be collected, it is not added to node_map within the runner. This results in a KeyError when trying to access the value to filter the local namespace.

To fix it, I've added a check that the path is present in node_map prior to opening the console.

How to verify it

Try to interactively debug a test with a syntax error. It still won't be possible, but you'll receive the correct exception.

@iamdefinitelyahuman iamdefinitelyahuman merged commit 19c5e24 into master Nov 2, 2020
@iamdefinitelyahuman iamdefinitelyahuman deleted the fix-i-unknown-node branch November 2, 2020 11:41
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.

None yet

1 participant