commit | 22fb4708573e5fdde4bc73d23d201edb554113c9 | [log] [tgz] |
---|---|---|
author | Zhi Kun Liu <zhikunli@cn.ibm.com> | Thu Feb 27 16:15:24 2014 +0800 |
committer | Zhi Kun Liu <zhikunli@cn.ibm.com> | Fri Mar 07 14:05:18 2014 +0800 |
tree | a45d59e671b44e3e546a04047af2e098ff7eef51 | |
parent | ff956a6669ecd546de89d43d52771aade0f56896 [diff] |
cleanup resources in setUpClass if exception raised Resources created would not be cleanup if exception raised in setUpClass. This patch adds a new decorator to wrap setUpClass for catching the exception in setUpClass and cleanup resources using tearDownClass(). Use the decorator in the following test classes: FloatingIPsTestJSON ImagesMetadataTestJSON ListServerFiltersTestJSON Change-Id: Ia20ebd2a5d1b5ecbd5e8b21e51e7c2ee4c99fbd5 Closes-Bug: #1285509