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

DM-14770: tests mis-call PropertySet.get #52

Merged
merged 2 commits into from
Jun 12, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,6 @@ python/lsst/pipe/base/version.py
tests/.tests
ups/*.cfgc
.cache
.pytest_cache
pytest_session.txt
.coverage
4 changes: 2 additions & 2 deletions tests/test_task.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,12 +212,12 @@ def testFail(self):
addMultTask.failDec()
self.fail("Expected RuntimeError")
except RuntimeError:
self.assertIsNotNone(addMultTask.metadata.get("failDecEndCpuTime", None))
self.assertTrue(addMultTask.metadata.exists("failDecEndCpuTime"))
try:
addMultTask.failCtx()
self.fail("Expected RuntimeError")
except RuntimeError:
self.assertIsNotNone(addMultTask.metadata.get("failCtxEndCpuTime", None))
self.assertTrue(addMultTask.metadata.exists("failCtxEndCpuTime"))

def testTimeMethod(self):
"""Test that the timer is adding the right metadata
Expand Down