[
https://issues.apache.org/jira/browse/ARROW-7973?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Wes McKinney reassigned ARROW-7973:
-----------------------------------
Assignee: Wes McKinney
> [Developer][C++] ResourceWarnings in run_cpplint.py
> ----------------------------------------------------
>
> Key: ARROW-7973
> URL: https://issues.apache.org/jira/browse/ARROW-7973
> Project: Apache Arrow
> Issue Type: Bug
> Components: C++, Developer Tools
> Reporter: Wes McKinney
> Assignee: Wes McKinney
> Priority: Major
> Fix For: 1.0.0
>
>
> Seeing warnings like this locally
> {code}
> $ ninja lint
> [1/1] cd /home/wesm/code/arrow/cpp/preflight...ce_dir
> /home/wesm/code/arrow/cpp/src --quiet
> FAILED: CMakeFiles/lint
> cd /home/wesm/code/arrow/cpp/preflight-build &&
> /home/wesm/miniconda/envs/arrow-3.7/bin/python
> /home/wesm/code/arrow/cpp/build-support/run_cpplint.py --cpplint_binary
> /home/wesm/code/arrow/cpp/build-support/cpplint.py --exclude_globs
> /home/wesm/code/arrow/cpp/build-support/lint_exclusions.txt --source_dir
> /home/wesm/code/arrow/cpp/src --quiet
> /home/wesm/code/arrow/cpp/build-support/run_cpplint.py:77: ResourceWarning:
> unclosed file <_io.TextIOWrapper
> name='/home/wesm/code/arrow/cpp/build-support/lint_exclusions.txt' mode='r'
> encoding='UTF-8'>
> for line in open(arguments.exclude_globs):
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /home/wesm/code/arrow/cpp/build-support/cpplint.py:6240: ResourceWarning:
> unclosed file <_io.BufferedReader
> name='/home/wesm/code/arrow/cpp/src/arrow/compute/kernels/add.h'>
> lines = codecs.open(filename, 'r', 'utf8', 'replace').read().split('\n')
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> /home/wesm/code/arrow/cpp/build-support/cpplint.py:6240: ResourceWarning:
> unclosed file <_io.BufferedReader
> name='/home/wesm/code/arrow/cpp/src/arrow/compute/kernels/util_internal.h'>
> lines = codecs.open(filename, 'r', 'utf8', 'replace').read().split('\n')
> ResourceWarning: Enable tracemalloc to get the object allocation traceback
> {code}
> I was using {{PYTHONDEVMODE=1}} so this may be related
--
This message was sent by Atlassian Jira
(v8.3.4#803005)