hacking check for contextlib.nested for py34 support

Removed use of contextlib.nested call from codebase as
contextlib.nested is not compatible with Python 3.

Added hacking check to catch if any new instances are added
to the codebase.

Change-Id: Ib78102bc013e4cc91ba54d79aa2815f4cf9f446d
This commit is contained in:
Davanum Srinivas
2015-09-28 21:46:51 -04:00
committed by Davanum Srinivas (dims)
parent 16111bd236
commit 32246daee4
3 changed files with 38 additions and 0 deletions
+1
View File
@@ -51,6 +51,7 @@ Nova Specific Commandments
assertIn/NotIn(A, B)
- [N339] Check common raise_feature_not_supported() is used for v2.1 HTTPNotImplemented response.
- [N340] Check nova.utils.spawn() is used instead of greenthread.spawn() and eventlet.spawn()
- [N341] contextlib.nested is deprecated
Creating Unit Tests
-------------------