[hacking] N373 do not use eventlet primitives
Add a new hacking check to prevent adding Eventlet concurrency primitives where the stdlib one is equivalent. Right now only eventlet/greenthread.sleep is checked but as we progress with the transformation we will add more primitives. Change-Id: I1310bb7a8c8133364060eb8814226cab52219171
This commit is contained in:
@@ -77,6 +77,8 @@ Nova Specific Commandments
|
||||
- [N370] Don't use or import six
|
||||
- [N371] You must explicitly import python's mock: ``from unittest import mock``
|
||||
- [N372] Don't use the setDaemon method. Use the daemon attribute instead.
|
||||
- [N373] Don't use eventlet specific concurrency primitives. Use the one
|
||||
from stdlib instead. E.g. eventlet.sleep => time.sleep
|
||||
|
||||
Creating Unit Tests
|
||||
-------------------
|
||||
|
||||
Reference in New Issue
Block a user