Cursor Python Extension Fails to Resolve Symlinked HOME Directory When Running Pytest

Where does the bug appear (feature/product)?

Cursor IDE

Describe the Bug

When using the Python extension in Cursor to run Pytest, the extension fails to correctly resolve the symlinked HOME directory. This results in an incorrect path being used for the Python testing tools, causing the Pytest output to be empty and the testing UI to fail.

Steps to Reproduce

  1. Set up a symlinked HOME directory (e.g., /data_volume/home/users/xx symlinked to $HOME).

  2. Open a Python project in Cursor.

  3. Attempt to config Pytest using the Cursor Python extension.
    (eg: {
    “python.testing.unittestEnabled”: false,
    “python.testing.pytestEnabled”: true,
    “python.testing.pytestArgs”: [
    “test”
    ],
    “python.testing.unittestArgs”: [
    “-v”,
    “-s”,
    “./test”,
    “-p”,
    “test_*.py”
    ],
    })

  4. Observe the output in the “Python”

Expected Behavior

The Pytest execution should correctly resolve the symlinked HOME directory and run successfully, displaying test results in the UI (similar to the VS Code Python extension).

Operating System

Linux

Current Cursor Version (Menu → About Cursor → Copy)

Version: 2.0.50
VSCode Version: 1.99.3
Commit: a788ca5efbb89cf7c24e873ea3623b2e47b42490
Date: 2025-11-02T23:59:00.227Z
Electron: 37.7.0
Chromium: 138.0.7204.251
Node.js: 22.20.0
V8: 13.8.258.32-electron.0
OS: Darwin arm64 24.6.0

Additional Information

Python extensions info:
Version
1.0.10
Last Updated
2025-11-05, 19:10:56

Does this stop you from using Cursor

Yes - Cursor is unusable

This topic was automatically closed 22 days after the last reply. New replies are no longer allowed.