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

rye test & python -m pytest with a breakpoint() drops in a pdb shell but unable to interact #1281

Open
saucoide opened this issue Jul 26, 2024 · 0 comments

Comments

@saucoide
Copy link

Steps to Reproduce

  1. Add a breakpoint() anywhere in a test
  2. rye test or python -m pytest

Expected Result

It would drop you in a pdb session with a working prompt

Actual Result

it drops you in a pdb session, but there is no prompt and it's not possible to do anything

There are 2 things, one i'm not sure if it should be considered a bug to be honest:

  • rye test, you can do rye test --no-capture and it works as expected
  • python -m pytest leaves you in the pdb session with no prompt, and also unable to Ctrl-C out of it

Version Info

rye 0.34.0
commit: 0.34.0 (1980-01-01)
platform: macos (x86_64)
self-python: [email protected]
symlink support: true
uv enabled: true

Stacktrace

No response

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

No branches or pull requests

1 participant