oslo.messaging/tests/notify
Mehdi Abaakouk c49594a62f Remove usage of contentmanager for executors
The context manager in the executor fit only for the blocking executor.
Even the dispatcher needs to run code before and after the application
callback, eventlet and future executors have to run the pre/post code
into the main thread and can run the callback into an other thread,
and that force them to run __enter__ and __exit__ manually and deal
the exception path.

This change adds a helper object instead of the context manager.
It is designed to be explicit on what must be executed
before and after the callback and what can be done in a thread or not.

All the executor code is now in the impl_pooledexecutor.py
and use the futures "PoolExecutor" API.

This use futurist to provide a eventlet and aioeventlet futures friendly
object.

Change-Id: I8cd7640f36beeda47560e3c82671bad3530e38d1
2015-07-08 13:42:10 +02:00
..
__init__.py Fix structure of unit tests in oslo.messaging (part 1) 2014-06-25 12:20:36 +04:00
test_dispatcher.py Remove usage of contentmanager for executors 2015-07-08 13:42:10 +02:00
test_listener.py Drop use of 'oslo' namespace package 2015-06-19 18:06:50 +00:00
test_log_handler.py Use unittest.mock on Python 3 2015-04-16 00:07:48 +02:00
test_logger.py Remove py26 artefacts from oslo.messaging code 2015-07-06 12:04:02 +03:00
test_middleware.py Use unittest.mock on Python 3 2015-04-16 00:07:48 +02:00
test_notifier.py Use unittest.mock on Python 3 2015-04-16 00:07:48 +02:00