ssato / python-anyconfig

Python library provides common APIs to load and dump configuration files in various formats
MIT License
277 stars 31 forks source link

Error during unittest #80

Closed edyan closed 7 years ago

edyan commented 7 years ago

Hi,

When I run a unit test I get the following error:

lib/python3.5/site-packages/anyconfig/backend/base.py:453: ResourceWarning: unclosed file <_io.TextIOWrapper name='tests/static/config_empty.yml' mode='r' encoding='UTF-8'>

Is there any method to close the opened files ?

Thanks

ssato commented 7 years ago

Thanks for the report!

I'll take a look at it.

ssato commented 7 years ago

I think it was fixed by the commit e049c82. Could you please check with it?

edyan commented 7 years ago

Hi,

It works well !

Thanks for the fix