Skip to content

Test CWD issues discovered in beta #2406

Closed
@joerick

Description

@joerick

It seems that in the beta we're seeing a couple instances of the test cwd change causing significant backwards incompatibility-

Even with PYTHONSAFEPATH applied, it seems that there's some behaviour (could be pytest's prepend mode?) that is causing issues with import paths in test commands. I haven't looked into it in any depth, but I wanted to make an issue as somewhere to discuss.

For what it's worth, I suggested making the change to the test CWD to clean up options specification, as I thought the temp dir wasn't providing us much benefit anyway. It looks like that might not have been 100% right!

I think we still have the option of keeping the temp CWD behaviour when test-sources is unset. One thing to consider is if it's worth just returning to that behaviour. Of course the best thing would be for projects to switch to /src for their code, but we know that a cibuildwheel upgrade is unlikely to be enough of a reason to make that (huge) change.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions