Skip to content

Commit

Permalink
Merge pull request #52 from lsst/tickets/DM-14770
Browse files Browse the repository at this point in the history
DM-14770: tests mis-call PropertySet.get
  • Loading branch information
r-owen committed Jun 12, 2018
2 parents fa9b38f + b63e465 commit 598c41d
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
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

0 comments on commit 598c41d

Please sign in to comment.