@contextlib.contextmanager
def check_cc_compiled(self, cc):
    cc.output_dir = self.tmpdir
    cc.compile()
    with self.check_c_ext(self.tmpdir, cc.name) as lib:
        (yield lib)
@contextlib.contextmanager
def check_cc_compiled(self, cc):
    cc.output_dir = self.tmpdir
    cc.compile()
    with self.check_c_ext(self.tmpdir, cc.name) as lib:
        (yield lib)