@contextmanager
    def _attachfile(self, filename):
        reportpath = os.path.join(self.logdir, filename)

        with open(reportpath, 'wb') as f:
            yield f
Yields open file object in the report directory with given name
dataset/ETHPy150Open allure-framework/allure-python/allure/common.py/AllureImpl._attachfile