plone / Products.PlonePAS

User and group implementation for the Plone CMS and Zope PluggableAuthService
6 stars 21 forks source link

Avoid ResourceWarning messages #47

Closed gforcada closed 5 years ago

gforcada commented 5 years ago

While running tests one runs across these warnings:

/srv/python3.7/lib/python3.7/doctest.py:2174: ResourceWarning: unclosed file <_io.BufferedReader name='Products/PlonePAS/tests/images/test.jpg'>
  test.globs.clear()
/srv/python3.7/lib/python3.7/doctest.py:2174: ResourceWarning: unclosed file <_io.BufferedReader name='Products/PlonePAS/tests/images/test.png'>
  test.globs.clear()
/srv/python3.7/lib/python3.7/doctest.py:2174: ResourceWarning: unclosed file <_io.BufferedReader name='Products/PlonePAS/tests/images/test.gif'>
  test.globs.clear()