Use abspath for errors when cwd changes during testing#7220
Use abspath for errors when cwd changes during testing#7220nicoddemus merged 3 commits intopytest-dev:masterfrom
Conversation
|
Just to make sure this is the best solution, some alternatives might be:
2 & 3 are probably not good ideas, but 1 does make sense to me, I'm not sure we should really try to adapt to changing cwd after startup... |
That's a good idea, but it would probably require deeper changes in
Not sure, the use case presented seems reasonable to me, a fixture is changing cwd during setup and restoring it during teardown. And the problem also manifests itself if we use |
|
OK, if changing to be relative to BTW, presumably this is a problem also for other places that call |
On Windows specifically is common to have drives diverging just by
casing ("C:" vs "c:"), depending on the cwd provided by the user.
|
Backport: #7285 |
[5.4] Merge pull request #7220 from nicoddemus/issue-6428

Fixes #6428
Supersedes #6429