~launchpad-pqm/launchpad/devel

« back to all changes in this revision

Viewing changes to lib/canonical/launchpad/testing/systemdocs.py

  • Committer: Jeroen Vermeulen
  • Date: 2011-12-21 07:06:05 UTC
  • mto: This revision was merged to the branch mainline in revision 14574.
  • Revision ID: jeroen.vermeulen@canonical.com-20111221070605-80ijtuvo1mu2ojgz
Lint.

Show diffs side-by-side

added added

removed removed

Lines of Context:
114
114
 
115
115
    if stdout_logging:
116
116
        kw_setUp = kw.get('setUp')
 
117
 
117
118
        def setUp(test):
118
119
            if kw_setUp is not None:
119
120
                kw_setUp(test)
123
124
            test.globs['log'] = log
124
125
            # Store as instance attribute so we can uninstall it.
125
126
            test._stdout_logger = log
 
127
 
126
128
        kw['setUp'] = setUp
127
129
 
128
130
        kw_tearDown = kw.get('tearDown')
 
131
 
129
132
        def tearDown(test):
130
133
            if kw_tearDown is not None:
131
134
                kw_tearDown(test)
132
135
            reset_logging()
133
136
            test._stdout_logger.uninstall()
 
137
 
134
138
        kw['tearDown'] = tearDown
135
139
 
136
140
    layer = kw.pop('layer', None)