diff options
author | Barry Warsaw <barry@python.org> | 2015-01-26 17:05:21 -0500 |
---|---|---|
committer | Barry Warsaw <barry@python.org> | 2015-01-26 17:05:21 -0500 |
commit | fe99f7d6d87e88320933957b2933288c6eb2986d (patch) | |
tree | 82aff0c8aecaf6e87cfb77aea04d944965bc25f5 /tests/unittests/helpers.py | |
parent | fabff4aec884467729fc372bb67f240752c15511 (diff) | |
parent | 78915c97c18d678db10e0fde0d9306823c5f4610 (diff) | |
download | vyos-cloud-init-fe99f7d6d87e88320933957b2933288c6eb2986d.tar.gz vyos-cloud-init-fe99f7d6d87e88320933957b2933288c6eb2986d.zip |
Trunk merged and ported.
Diffstat (limited to 'tests/unittests/helpers.py')
-rw-r--r-- | tests/unittests/helpers.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/tests/unittests/helpers.py b/tests/unittests/helpers.py index 4b8dcc5c..828579e8 100644 --- a/tests/unittests/helpers.py +++ b/tests/unittests/helpers.py @@ -169,7 +169,10 @@ class FilesystemMockingTestCase(ResourceUsingTestCase): def setUp(self): ResourceUsingTestCase.setUp(self) self.patched_funcs = ExitStack() - self.addCleanup(self.patched_funcs.close) + + def tearDown(self): + self.patched_funcs.close() + ResourceUsingTestCase.tearDown(self) def replicateTestRoot(self, example_root, target_root): real_root = self.resourceLocation() |