def setup(self): self.parser = CParser(process_all=False)
def setup(self): path = os.path.join(os.path.dirname(__file__), 'test.pyclibcache') parser = CParser(['ctypes_test.h']) parser.write_cache(path) self.library = CLibrary(_ctypes_test.__file__, ['ctypes_test.h'], cache=path)
def test_init(self): parser = CParser(os.path.join(self.h_dir, 'replace.h')) assert parser.files is not None