Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Releasing resources of context manager functions if exceptions occur
The functions using decorator @contextlib.contextmanager in files below has potential resorce leaks when exceptions occur. - quantum/tests/unit/test_policy.py - quantum/tests/unit/test_db_plugin.py - quantum/tests/unit/test_l3_plugin.py - quantum/tests/unit/test_extension_security_group.py This patch let them releasing resources correctly. Fixes bug #1083045 Change-Id: I66266b7afa4977537caabafc82d8c294730188ba
- Loading branch information
Showing
3 changed files
with
136 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters