Fix ResourceWarnings when script tests fail.
Merge branch 'fix-resource-warning' of https://github.com/QuLogic/python-future into QuLogic-fix-resource-warning
Merge branch 'QuLogic-fix-resource-warning' into v0.14.x