requests-cloudkit icon indicating copy to clipboard operation
requests-cloudkit copied to clipboard

Close a credentials stream

Open vvorlov opened this issue 4 years ago • 0 comments

The warning appears during requests when doing unit tests via unittest package:

/venv/lib/python3.7/site-packages/requests_cloudkit/cloudkit.py:78:
ResourceWarning: unclosed file <_io.TextIOWrapper name='credentials/CloudKitKeyDev.pem' mode='r' encoding='UTF-8'>
  return open(self.key_file_name).read()
ResourceWarning: Enable tracemalloc to get the object allocation traceback

vvorlov avatar Feb 23 '20 16:02 vvorlov