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

Simplify tests by refactoring to T.TempDir #239

Merged
merged 1 commit into from
Feb 1, 2024
Merged

Simplify tests by refactoring to T.TempDir #239

merged 1 commit into from
Feb 1, 2024

Conversation

alexandear
Copy link
Contributor

This PR refactors tests by changing to use T.TempDir instead of os.MkdirTemp. T.TempDir automatically removes the temporary directory.

Copy link
Owner

@kisielk kisielk left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Nice, thank you!

@kisielk kisielk merged commit f1d2d87 into kisielk:master Feb 1, 2024
4 checks passed
@alexandear alexandear deleted the simplify-tests-t-tempdir branch February 1, 2024 16:59
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

Successfully merging this pull request may close these issues.

2 participants