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

Dangling file handles in ap_verify

    XMLWordPrintable

Details

    • Bug
    • Status: Won't Fix
    • Resolution: Done
    • None
    • ap_verify
    • 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

            tjenness Tim Jenness added a comment - See https://github.com/astropy/astropy/issues/8673

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

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

            People

              krzys Krzysztof Findeisen
              krzys Krzysztof Findeisen
              Krzysztof Findeisen, Simon Krughoff (Inactive), Tim Jenness
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:

                Jenkins

                  No builds found.