Skip to content

The pytest.exe runner/wrapper has some incompatibility with uv which breaks history in pdb on windows #14052

@RmStorm

Description

@RmStorm

Running pytest directly through uv breaks history in pdb on windows. i.e.

➜ cat src/shell_pytest/test_thingy.py -p
def test_my_test():
    breakpoint()

uv run pytest drops you straight into a debugger. On linux everything is good on windows history is broken.

This is quite annoying because pdb without history is very cumbersome! I'm not sure if this is easiest to fix on the uv side of things or in the pytest.exe wrapper so I've made issue in both. The uv issue is here:
astral-sh/uv#17174
That issue also contains some more detail if anyone is interested in picking this up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions