~bzr-pqm/bzr/bzr.dev

« back to all changes in this revision

Viewing changes to bzrlib/tests/test_smart_request.py

  • Committer: Canonical.com Patch Queue Manager
  • Date: 2010-09-23 09:00:18 UTC
  • mfrom: (5439.1.1 merge-2.2-into-devel)
  • Revision ID: pqm@pqm.ubuntu.com-20100923090018-01aj4ifyzaps50bo
(spiv) Merge lp:bzr/2.2. (Andrew Bennetts)

Show diffs side-by-side

added added

removed removed

Lines of Context:
187
187
 
188
188
class TestJailHook(TestCaseWithMemoryTransport):
189
189
 
190
 
    def tearDown(self):
191
 
        request.jail_info.transports = None
192
 
        TestCaseWithMemoryTransport.tearDown(self)
 
190
    def setUp(self):
 
191
        super(TestJailHook, self).setUp()
 
192
        def clear_jail_info():
 
193
            request.jail_info.transports = None
 
194
        self.addCleanup(clear_jail_info)
193
195
 
194
196
    def test_jail_hook(self):
195
197
        request.jail_info.transports = None