124
125
# Store as instance attribute so we can uninstall it.
125
126
test._stdout_logger = log
128
130
kw_tearDown = kw.get('tearDown')
130
133
if kw_tearDown is not None:
133
136
test._stdout_logger.uninstall()
134
138
kw['tearDown'] = tearDown
136
140
layer = kw.pop('layer', None)