oslo.log/oslo_log/tests/__init__.py
Itamar Turner-Trauring 98bb185f15 Support running tests w/eventlet monkey patching
- Enables the ability to monkey-patch eventlet during testing
  by setting OSLO_LOG_TEST_EVENTLET=1 in environment.
- Fix deadlock running tests under eventlet monkey-patching
- Enable new CI job which runs unit tests with evenlet monkey
  patching enabled.

Change-Id: Ie9e012ac73bbfa8b5e6e0f610c11868466c7cf4b
2024-11-21 14:36:52 -08:00

6 lines
111 B
Python

import os
if os.environ.get("OSLO_LOG_TEST_EVENTLET") == "1":
import eventlet
eventlet.monkey_patch()