Suppressed ResourceWarning in files tests