@staticmethod
    def open_logfile(test_name):
        """Open and return a logfile for the test."""

        logfile_path = os.path.join(test_name, test_name + '.log')
        try:
            logfile = open(logfile_path, 'w')
        except __HOLE__ as e:
            raise AssertionError('Unable to open logfile %s: %s' %
                                 (logfile_path, e.strerror))
        return logfile
dataset/ETHPy150Open GeoscienceAustralia/agdc/tests/systest.py/Systest.open_logfile