Failing test for ResourceWarning on Python 3