@classmethod
def _cleanup(cls, name, warn_message):
    rmtree(name)
    warnings.warn(warn_message, ResourceWarning)
@classmethod
def _cleanup(cls, name, warn_message):
    rmtree(name)
    warnings.warn(warn_message, ResourceWarning)