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

Review comments for DM-2418 ("afw tests reuse the same filenames") #1

Merged
merged 1 commit into from Apr 11, 2015

Conversation

jdswinbank
Copy link
Contributor

No description provided.

except OSError as e:
print "Warning: could not remove file %r: %s" % (outPath, e)
else:
print "Warning: could not find file %r" % (outPath,)
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Should this be using logging rather than print? (That's a genuine question -- I don't know the answer, and I'm not aware of a standard -- so I ask for my information rather than as a correction.)

Copy link
Contributor

Choose a reason for hiding this comment

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

I think print is better because this is intended for unit tests.

Logging would definitely be preferred if this was for pipeline execution.

I added context manager lsst.utils.tests.getTempFilePath to create temporary
file paths based on unit test file path and name of the test function.
This is intended to simplify unit tests and reduce the danger of tests
using the same file name and thus colliding with each other (a serious problem
in afw that has had 3 tickets and one incomplete fixup pass before this one).

I removed temporaryFile, an older attempt that was only used in one place
before my cleanup of afw unit tests and nowhere afterwards.

I also added an overview documentation main.dox and improved the documentation
of items in lsst.utils.tests.

Add a main.dox file and fix a formatting error in a doc string

Document p_lsstSwig.i and fix a few Doxygen errors

I have not figured out how to get a live link to p_lsstSwig.i, but it doesn't include
doxygen comments anyway.

Clean up as per review and remove deprecated temporaryFile.
@r-owen r-owen merged commit 6559e97 into master Apr 11, 2015
@ktlim ktlim deleted the tickets/DM-2418 branch August 25, 2018 05:57
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