MCPcopy Create free account
hub / github.com/Pylons/webtest / ErrorWrapper

Class ErrorWrapper

webtest/lint.py:247–263  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

245
246
247class ErrorWrapper:
248
249 def __init__(self, wsgi_errors):
250 self.errors = wsgi_errors
251
252 def write(self, s):
253 self.errors.write(s)
254
255 def flush(self):
256 self.errors.flush()
257
258 def writelines(self, seq):
259 for line in seq:
260 self.write(line)
261
262 def close(self):
263 raise AssertionError("errors.close() must not be called")
264
265
266class WriteWrapper:

Callers 4

test_dont_closeMethod · 0.90
test_writelinesMethod · 0.90
test_flushMethod · 0.90
lint_appFunction · 0.85

Calls

no outgoing calls

Tested by 3

test_dont_closeMethod · 0.72
test_writelinesMethod · 0.72
test_flushMethod · 0.72

Used in the wild real call sites across dependent graphs

searching dependent graphs…