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

Replace tmpdir fixture with tmp_path #339

Merged
merged 1 commit into from
May 2, 2023
Merged

Replace tmpdir fixture with tmp_path #339

merged 1 commit into from
May 2, 2023

Conversation

jwodder
Copy link
Collaborator

@jwodder jwodder commented May 2, 2023

Part of #325.

@jwodder jwodder mentioned this pull request May 2, 2023
35 tasks
@jwodder jwodder added the cleanup label May 2, 2023
@yarikoptic
Copy link
Member

from https://stackoverflow.com/a/36071167 on rationale which I eventually memorize:

Use tmp_path instead of tmpdir. tmp_path is a pathlib.Path/pathlib2.Path. tmpdir is a py.path (Actually LocalPath), which has offered syntax very similar to pathlib.Path. See pytest issue.

Usage of py.path is no longer recommended by the developers.

@yarikoptic yarikoptic merged commit 1b34fcc into master May 2, 2023
@yarikoptic yarikoptic deleted the tmpdir branch May 2, 2023 19:44
@jwodder jwodder added the tests Add or improve existing tests label May 3, 2023
@github-actions
Copy link

🚀 PR was released in v4.0.0 🚀

@github-actions github-actions bot added the released This issue/pull request has been released. label May 30, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
cleanup released This issue/pull request has been released. tests Add or improve existing tests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants