diff options
| author | Jonathan Lange <jml@canonical.com> | 2011-07-26 23:08:18 +0100 |
|---|---|---|
| committer | Jonathan Lange <jml@canonical.com> | 2011-07-26 23:08:18 +0100 |
| commit | 7a5d967f6583684a5cd4a730de69396f87ee7f89 (patch) | |
| tree | 8ea5e8532f497698355953139a7e92e53e3d9785 /testtools/tests/test_helpers.py | |
| parent | c772ea94ab326e436e835e8c352aa50a2e63dc5f (diff) | |
| download | testtools-7a5d967f6583684a5cd4a730de69396f87ee7f89.tar.gz | |
Missed one.
Diffstat (limited to 'testtools/tests/test_helpers.py')
| -rw-r--r-- | testtools/tests/test_helpers.py | 5 |
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)) |
