def METHOD_NAME(self):
    # Be sure that setrlimit is checking for really large values
    too_big = 10**50
    try:
        (cur, max) = resource.getrlimit(resource.RLIMIT_FSIZE)
    except AttributeError:
        pass
    else:
        try:
            resource.setrlimit(resource.RLIMIT_FSIZE, (too_big, max))
        except (OverflowError, ValueError):
            pass
        try:
            resource.setrlimit(resource.RLIMIT_FSIZE, (max, too_big))
        except (OverflowError, ValueError):
            pass