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 leaky monley-patching of pprint._safe_repr in boltons.ecoutils #335

Closed
wants to merge 1 commit into from
Closed

Fix leaky monley-patching of pprint._safe_repr in boltons.ecoutils #335

wants to merge 1 commit into from

Conversation

kdeldycke
Copy link
Contributor

@kdeldycke kdeldycke commented Apr 8, 2023

This fix the way pprint._safe_repr is locally patched in boltons.ecoutils.

The symptoms are broken pdb prompt from my pytest --pdb calls sessions, as discribes in details at #334.

That issue being quite subtle and convoluted, I cannot find a simple and elegant way to create a unittest for this, so I propose to merge the fix as-is.

This closes #334.

@kdeldycke
Copy link
Contributor Author

All tests are passing. This PR is ready to be merged upstream.

@kdeldycke
Copy link
Contributor Author

Forget about this change, it's not the root cause that fix #334.

@kdeldycke kdeldycke closed this Apr 9, 2023
@kdeldycke kdeldycke deleted the fix-pprint.safe_repr-monkeypatching branch April 9, 2023 12:51
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.

boltons.ecoutils 23.0.0 breaks pdb interactive prompt in pytest debug sessions
1 participant