Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Transition away from tmpdir #600

Open
lilyminium opened this issue Jan 20, 2025 · 2 comments
Open

Transition away from tmpdir #600

lilyminium opened this issue Jan 20, 2025 · 2 comments

Comments

@lilyminium
Copy link
Contributor

Apparently my favourite pytest fixture, tmpdir, is now getting deprecated in favour of tmp_path. Tests should transition away from tmpdir. :-(

@mattwthompson
Copy link
Member

Is it a %s/tmpdir/tmp_path/g sort of deal?

@lilyminium
Copy link
Contributor Author

Something like that yes, I think my favourite one-liner with tmpdir.as_cwd() may now need to be replaced with os.chdir(tmp_path) as well. :-(

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants