Lines Matching refs:f
179 def build(self, f, **_): argument
183 f.write('#define %s %s\n' % (k, v))
185 f.write('void test_case%d(%s) {' % (self.caseno, ','.join(
190 f.write(PROLOGUE)
191 f.write('\n')
192 f.write(4*' '+'// test case %d\n' % self.caseno)
193 f.write(4*' '+'#line %d "%s"\n' % (self.code_lineno, self.suite.path))
196 f.write(self.code)
199 f.write(EPILOGUE)
200 f.write('}\n')
204 f.write('#undef %s\n' % k)
247 with open(disk, 'w') as f:
248 f.truncate(0)
307 with open(m.group(1)) as f:
309 line = (next(it.islice(f, lineno-1, None))
399 with open(self.toml) as f:
401 config = toml.load(f)
404 f.seek(0)
407 for i, line in enumerate(f):
522 with open(case.in_) as f:
523 for line in f:
643 filter = [int(f) for f in filter]
704 with open(m.group(1)) as f:
706 line = next(it.islice(f, lineno-1, None)).strip('\n')