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

tests: Use script.scratch_path over script.temp_path #13272

Merged
merged 1 commit into from
Mar 8, 2025

Conversation

ichard26
Copy link
Member

@ichard26 ichard26 commented Mar 8, 2025

script.temp_path is the system temporary directory. scripttest will check that there aren't any dangling files left in there, thus it's inappropriate to write long-lived packages there.

These tests are currently passing as scripttest's temporary file detection logic is broken. However, a newer version of scripttest will fail.

(I'm currently in the midst of modernizing scripttest in preparation for some limited feature development.)

script.temp_path is the system temporary directory. scripttest will
check that there aren't any dangling files left in there, thus it's
inappropriate to write long-lived packages there.

These tests are currently passing as scripttest's temporary file
detection logic is broken. However, a newer version of scripttest will
fail.
@ichard26 ichard26 added the skip news Does not need a NEWS file entry (eg: trivial changes) label Mar 8, 2025
@ichard26
Copy link
Member Author

ichard26 commented Mar 8, 2025

Merging as this can't possibly be controversial as a test-only change and I'd like to cut a new scripttest release later today.

@ichard26 ichard26 merged commit 873fdf7 into pypa:main Mar 8, 2025
28 checks passed
@ichard26 ichard26 deleted the patch branch March 8, 2025 18:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
skip news Does not need a NEWS file entry (eg: trivial changes)
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant