Uploaded image for project: 'Data Management'
  1. Data Management
  2. DM-7265

Add msg kwarg to TestCase.AllClose

    Details

    • Type: Improvement
    • Status: Invalid
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: utils
    • Templates:

      Description

      utils.TestCase has a number of useful methods for floating point tests, but the allClose/allNotClose methods don't have a msg kwarg, so it's not possible to specify a more detailed error message. Some of the lsst.afw.image.testUtils mixins have msg, but some don't. This can be very helpful when writing unittests where the test writer knows more about the conditions than allClose can determine on the fly.

      I would suggest that whatever is passed for msg be appended to the default message in allClose, etc., not replace it.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                Parejkoj John Parejko
                Reporter:
                Parejkoj John Parejko
                Watchers:
                Jim Bosch, John Parejko, Paul Price, Russell Owen, Simon Krughoff, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                6 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Summary Panel