Skip to content

Commit

Permalink
Merge pull request #266 from lsst/tickets/DM-11442
Browse files Browse the repository at this point in the history
Skip test if dataDir is None
  • Loading branch information
brianv0 committed Jul 31, 2017
2 parents 5f265bb + 39b1308 commit d3ef406
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions tests/test_imageIo1.py
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,7 @@ def checkBBoxFromMetadata(self, filename, expected, hdu=0):
bbox = afwImage.bboxFromMetadata(metadata)
self.assertEqual(bbox, expected)

@unittest.skipIf(dataDir is None, "afwdata not setup")
def testBBoxFromMetadata(self):
self.checkBBoxFromMetadata(os.path.join(dataDir, "871034p_1_img.fits"),
afwGeom.Box2I(afwGeom.Point2I(0, 0), afwGeom.Extent2I(2112, 4644)))
Expand Down

0 comments on commit d3ef406

Please sign in to comment.