Uploaded image for project: 'Apache Arrow'
  1. Apache Arrow
  2. ARROW-17651

[Python] ResourceWarnings raised by s3 related tests

    XMLWordPrintableJSON

Details

    • Test
    • Status: Open
    • Minor
    • Resolution: Unresolved
    • None
    • None
    • Python

    Description

      Running the python tests give a lot of the following warnings:

      opt/conda/envs/arrow/lib/python3.9/site-packages/pyarrow/tests/test_fs.py::test_s3fs_limited_permissions_create_bucket
        /opt/conda/envs/arrow/lib/python3.9/site-packages/pyarrow/tests/util.py:439: ResourceWarning: unclosed file <_io.TextIOWrapper name=29 encoding='utf-8'>
          _run_mc_command(mcdir, 'admin', 'policy', 'add',
        Enable tracemalloc to get traceback where the object was allocated.
        See https://docs.pytest.org/en/stable/how-to/capture-warnings.html#resource-warnings for more info.
      

      Ideally we should ensure the tests don't give such warnings (it also makes other warning we should notice less visible)

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              jorisvandenbossche Joris Van den Bossche
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated: