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

Dangling file handles in ap_verify

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Won't Fix
    • Resolution: Done
    • Fix Version/s: None
    • Component/s: ap_verify
    • Labels:
      None

      Description

      Building ap_verify with scons gives the warning:

      tests/test_ingestion.py::IngestionTestSuite::testDefectIngestDriver
      lsstsw3/miniconda/envs/lsst-scipipe/lib/python3.7/site-packages/astropy/io/ascii/connect.py:37: ResourceWarning: unclosed file <_io.TextIOWrapper name='lsstsw3/stack/Linux64/obs_test_data/master-gb4dcb135d7/test/defects/0/19700101T000000.ecsv' encoding='UTF-8'>
          return read(filename, format=format, **kwargs)
      

      I tried to find where the file is opened, but couldn't spot any unsafe code; it might be a bug in Astropy rather than in the Stack. Determine if this is the case, and fix.

        Attachments

          Issue Links

            Activity

            Show
            tjenness Tim Jenness added a comment - See https://github.com/astropy/astropy/issues/8673
            Hide
            krzys Krzysztof Findeisen added a comment -

            Thanks for the link (and for reporting it in the first place)!

            Show
            krzys Krzysztof Findeisen added a comment - Thanks for the link (and for reporting it in the first place)!

              People

              Assignee:
              krzys Krzysztof Findeisen
              Reporter:
              krzys Krzysztof Findeisen
              Watchers:
              Krzysztof Findeisen, Simon Krughoff, Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved:

                  Jenkins

                  No builds found.