
So, calling addCleanup in __init__ is not supported anymore in latest testtools. This breaks the support we used to have in the base class that registered mock.patch.stopall right at the beginning, so classes inheriting would not have to worry about the cleanup. For Mitaka, we add a hack to make it work by looking at the underlying _cleanups variable. This clearly needs to be removed as soon as possible. Closes-Bug: #1545576 Change-Id: I29a77224bfd9d106c711155e0cfc10eac0e6fe36
oslotest -- OpenStack Testing Framework and Utilities
The Oslo Test framework provides common fixtures, support for debugging, and better support for mocking results.
- Free software: Apache license
- Documentation: http://docs.openstack.org/developer/oslotest
- Source: http://git.openstack.org/cgit/openstack/oslotest
- Bugs: http://bugs.launchpad.net/oslotest
Description
Languages
Python
92.1%
Shell
7.6%
reStructuredText
0.3%