astral-sh / rye

a Hassle-Free Python Experience
https://rye.astral.sh
MIT License
13.6k stars 466 forks source link

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

Open saucoide opened 2 months ago

saucoide commented 2 months ago

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:

Version Info

rye 0.34.0
commit: 0.34.0 (1980-01-01)
platform: macos (x86_64)
self-python: cpython@3.12.3
symlink support: true
uv enabled: true

Stacktrace

No response