Skip to content

Commit

Permalink
Merge pull request #739 from lsst/tickets/DM-45006
Browse files Browse the repository at this point in the history
DM-45006: Ignore errors in tests from rmtree
  • Loading branch information
timj authored Jun 27, 2024
2 parents b7c702c + 87e601e commit 990b355
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion tests/test_footprint2.py
Original file line number Diff line number Diff line change
Expand Up @@ -363,7 +363,7 @@ def testInf(self):

import numpy
for x in range(im.getWidth()):
im[x, -1, afwImage.LOCAL] = (numpy.Inf, 0x0, 0)
im[x, -1, afwImage.LOCAL] = (numpy.inf, 0x0, 0)

ds = afwDetect.FootprintSet(im, afwDetect.createThreshold(100))

Expand Down
2 changes: 1 addition & 1 deletion tests/test_image.py
Original file line number Diff line number Diff line change
Expand Up @@ -751,7 +751,7 @@ def testDM882(self):
meta = readMetadata(testfile)
self.assertEqual(meta.getScalar("A.B.C.D"), 12345)
finally:
shutil.rmtree(tempdir)
shutil.rmtree(tempdir, ignore_errors=True)

def testLargeImage(self):
"""Test that creating an extremely large image raises, rather than segfaulting. DM-89, -527."""
Expand Down
2 changes: 1 addition & 1 deletion tests/test_maskedImageIO.py
Original file line number Diff line number Diff line change
Expand Up @@ -254,7 +254,7 @@ def tmpFits(*hdus):
hdulist.writeto(filename)
yield filename
finally:
shutil.rmtree(tempdir)
shutil.rmtree(tempdir, ignore_errors=True)


class MultiExtensionTestCase:
Expand Down

0 comments on commit 990b355

Please sign in to comment.