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

Use NamedTemporaryFile instead of deprecated mktemp. #543

Merged
merged 1 commit into from Mar 28, 2016
Merged

Use NamedTemporaryFile instead of deprecated mktemp. #543

merged 1 commit into from Mar 28, 2016

Conversation

sebastic
Copy link
Contributor

While investigating a test failure (caused by the absense of ncdump), I noticed that the tests still use the deprecated mktemp(), NamedTemporaryFile() should be used instead because it doesn't have race conditions in the file’s creation.

@jswhit
Copy link
Collaborator

jswhit commented Mar 28, 2016

Looks good - thanks!

@jswhit jswhit merged commit 7d55bfe into Unidata:master Mar 28, 2016
@sebastic sebastic deleted the tempfile-mktemp branch March 29, 2016 04:54
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.

None yet

2 participants