summaryrefslogtreecommitdiff
path: root/testtools/tests/test_helpers.py
diff options
context:
space:
mode:
authorJonathan Lange <jml@canonical.com>2011-07-26 23:08:18 +0100
committerJonathan Lange <jml@canonical.com>2011-07-26 23:08:18 +0100
commit7a5d967f6583684a5cd4a730de69396f87ee7f89 (patch)
tree8ea5e8532f497698355953139a7e92e53e3d9785 /testtools/tests/test_helpers.py
parentc772ea94ab326e436e835e8c352aa50a2e63dc5f (diff)
downloadtesttools-7a5d967f6583684a5cd4a730de69396f87ee7f89.tar.gz
Missed one.
Diffstat (limited to 'testtools/tests/test_helpers.py')
-rw-r--r--testtools/tests/test_helpers.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/testtools/tests/test_helpers.py b/testtools/tests/test_helpers.py
index f17caa6..7ca1fce 100644
--- a/testtools/tests/test_helpers.py
+++ b/testtools/tests/test_helpers.py
@@ -235,8 +235,11 @@ class TestStackHiding(TestCase):
def test_fixture(self):
current_state = is_stack_hidden()
fixture = StackHidingFixture(not current_state)
- with fixture:
+ fixture.setUp()
+ try:
self.assertThat(self.modules, StackHidden(not current_state))
+ finally:
+ fixture.cleanUp()
self.assertThat(self.modules, StackHidden(current_state))