From 3afd9791ef3e2472987cdabb54ef5f27a062469c Mon Sep 17 00:00:00 2001 From: Jamie Lennox Date: Thu, 30 May 2013 17:48:04 +1000 Subject: Isolate eventlet code into environment. The environment module will be configured once, during code initialization. Subsequently all other possibly-evented modules will retrieve from environment and transparently obtain either the eventlet or standard library modules. If eventlet, httplib, subprocess or other environment dependant module is referenced outside of the environment module it should be considered a bug. The changes to tests are required to ensure that test is imported first to setup the environment. Hopefully these can all be replaced with an __init__.py in a post-nose keystone. Implements: blueprint extract-eventlet Change-Id: Icacd6f2ee0906ac5d303777c1f87a184f38283bf --- tests/test_sql_upgrade.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'tests/test_sql_upgrade.py') diff --git a/tests/test_sql_upgrade.py b/tests/test_sql_upgrade.py index 59a8800c..ac4e5637 100644 --- a/tests/test_sql_upgrade.py +++ b/tests/test_sql_upgrade.py @@ -32,10 +32,11 @@ import uuid from migrate.versioning import api as versioning_api import sqlalchemy +from keystone import test + from keystone.common import sql from keystone.common.sql import migration from keystone import config -from keystone import test import default_fixtures -- cgit