ee112220e630fd457038bcb5911eb3486c279dab
Upgrading to mock 1.1.0 somehow exposed the logic error in deprecated() that was causing subclasses of deprecated exceptions to be reported as deprecated when they should not be. The problem makes sense because we were indiscriminately reporting the case in the constructor, and if the subclass initialized the base class the deprecation reporting function would be called. Change the logic to only report the deprecation if the class being instantiated matches one of the deprecated classes. Add a warning, and skip the test, for catching deprecated exceptions under Python 3, since this feature does not always work there. Also explicitly declare the versions of mock supported in the unit tests, since we need different versions for python 2.6 vs. 2.7 and later. Change-Id: Ib60413a0e45901902382c3ae547be0e24df4e50c
oslo.log -- Oslo Logging Library
The oslo.log (logging) configuration library provides standardized configuration for all openstack projects. It also provides custom formatters, handlers and support for context specific logging (like resource id's etc).
- Free software: Apache license
- Documentation: http://docs.openstack.org/developer/oslo.log
- Source: http://git.openstack.org/cgit/openstack/oslo.log
- Bugs: http://bugs.launchpad.net/oslo.log
Description
Languages
Python
100%