chrismattmann / tika-python

Tika-Python is a Python binding to the Apache Tika™ REST services allowing Tika to be called natively in the Python community.
Apache License 2.0
1.51k stars 235 forks source link

ResourceWarning when executing tests #263

Closed jjelosua closed 4 years ago

jjelosua commented 4 years ago

~/code/tika-python/tika/tika.py:329: ResourceWarning: unclosed file <_io.BufferedReader name='/var/folders/1l/bn7nfys51f98tfxk1y7_5q700000gq/T/boe-dias-2019-12-02-pdfs-boe-a-2019-17288.pdf'> headers, verbose, tikaServerJar, config_path=config_path, rawResponse=rawResponse, requestOptions=requestOptions)

The parent caller to CallServer should be responsible for the closure of the file/objects

chrismattmann commented 4 years ago

thanks @jjelosua