Uploaded image for project: 'Request For Comments'
  1. Request For Comments
  2. RFC-647

Add pytest-subtests to our standard packages

    Details

    • Type: RFC
    • Status: Implemented
    • Resolution: Done
    • Component/s: DM
    • Labels:
      None
    • Location:
      This RFC

      Description

      I propose that we add the pytest-subtests package https://github.com/pytest-dev/pytest-subtests to our standard suite of Python packages. This allows pytest to handle unittest's subTest method correctly: running all versions even if one fails.

      Without this add-on package pytest stops the test at the first failure, even if more subTest cases remain to be run. That is not a disaster, but it does mean that a test failure will not produce as much useful information as it ought to.

      This seems especially apropos given Paul Price's recent work with iterator support in unit tests: https://developer.lsst.io/python/testing.html#decorators-for-iteration

        Attachments

          Issue Links

            Activity

            rowen Russell Owen created issue -
            tjenness Tim Jenness made changes -
            Field Original Value New Value
            Watchers John Swinbank, Russell Owen, Tim Jenness [ John Swinbank, Russell Owen, Tim Jenness ] Gabriele Comoretto, John Swinbank, Kian-Tat Lim, Russell Owen, Tim Jenness [ Gabriele Comoretto, John Swinbank, Kian-Tat Lim, Russell Owen, Tim Jenness ]
            gcomoretto Gabriele Comoretto made changes -
            Remote Link This issue links to "Page (Confluence)" [ 22468 ]
            tjenness Tim Jenness made changes -
            Status Proposed [ 10805 ] Flagged [ 10606 ]
            gcomoretto Gabriele Comoretto made changes -
            Remote Link This issue links to "Page (Confluence)" [ 22603 ]
            gcomoretto Gabriele Comoretto made changes -
            Status Flagged [ 10606 ] Board Recommended [ 11405 ]
            gcomoretto Gabriele Comoretto made changes -
            Remote Link This issue links to "Page (Confluence)" [ 22658 ]
            gcomoretto Gabriele Comoretto made changes -
            Remote Link This issue links to "Page (Confluence)" [ 22715 ]
            tjenness Tim Jenness made changes -
            Link This issue is triggering DM-22640 [ DM-22640 ]
            tjenness Tim Jenness made changes -
            Status Board Recommended [ 11405 ] Adopted [ 10806 ]
            tjenness Tim Jenness made changes -
            Link This issue relates to RFC-664 [ RFC-664 ]
            tjenness Tim Jenness made changes -
            Link This issue is triggering DM-22817 [ DM-22817 ]
            tjenness Tim Jenness made changes -
            Resolution Done [ 10000 ]
            Status Adopted [ 10806 ] Implemented [ 11105 ]

              People

              • Assignee:
                rowen Russell Owen
                Reporter:
                rowen Russell Owen
                Watchers:
                Brian Van Klaveren, Gabriele Comoretto, John Swinbank, Kian-Tat Lim, Krzysztof Findeisen, Russell Owen, Tim Jenness
              • Votes:
                0 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Planned End:

                  Summary Panel