300
294
[script_file], stdin=subprocess.PIPE, stdout=subprocess.PIPE,
301
295
stderr=subprocess.PIPE, bufsize=0)
303
299
def request(self, query):
304
300
self.rewriter_proc.stdin.write(query + '\n')
305
301
return self.rewriter_proc.stdout.readline().rstrip('\n')
310
308
# Everything should be working, and we get valid output.
311
309
out = self.request('foo')
316
314
# Now with pgbouncer down, we should get NULL messages and
317
315
# stderr spam, and this keeps happening. We test more than