Python test debug never stops

Describe the Bug

After debugging Python tests, if they fail the test Explorator ever stops and does not show results

Steps to Reproduce

Run Python tests using Debug Tests button nexto some test in Test Explorer.
Finish the test
Check the Test Results tab

Expected Behavior

I expect test to be shown as successful and see results

Screenshots / Screen Recordings

Operating System

MacOS

Current Cursor Version (Menu → About Cursor → Copy)

Version: 1.0.0 (Universal)
VSCode Version: 1.96.2
Commit: 53b99ce608cba35127ae3a050c1738a959750860
Date: 2025-06-04T19:21:39.410Z
Electron: 34.5.1
Chromium: 132.0.6834.210
Node.js: 20.19.0
V8: 13.2.152.41-electron.0
OS: Darwin arm64 24.5.0

Additional Information

It is happening only if I run tests in debug. When I run them without debug mode it behaves correctly. This is launch.json

        {
            "name": "Python: Debug Tests",
            "type": "debugpy",
            "request": "launch",
            "purpose": [
                "debug-test"
            ],
            "console": "integratedTerminal",
            "cwd": "${workspaceFolder}",
            "justMyCode": false,
            "env": {
                "ENVIRONMENT": "test"
            }
        }

Does this stop you from using Cursor

No - Cursor works, but with this issue