summaryrefslogtreecommitdiff
path: root/sqla_nose.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-09-30 01:19:43 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-09-30 01:19:43 -0400
commitf12813711ad0e0587256a3cf6e3f9f931b9444b8 (patch)
tree89baab18274c8be0f04ade49e4bedfc42e0669b5 /sqla_nose.py
parentbd48c8a9ec6e064a628f928d5d0b459b12958bbb (diff)
downloadsqlalchemy-f12813711ad0e0587256a3cf6e3f9f931b9444b8.tar.gz
consolidate config into noseplugin, remove the dupe, load noseplugin using imp.load_source(), see if that works
Diffstat (limited to 'sqla_nose.py')
-rwxr-xr-xsqla_nose.py13
1 files changed, 8 insertions, 5 deletions
diff --git a/sqla_nose.py b/sqla_nose.py
index ec8cc81ae..7865fc978 100755
--- a/sqla_nose.py
+++ b/sqla_nose.py
@@ -8,15 +8,18 @@ installs SQLAlchemy's testing plugin into the local environment.
"""
import sys
import os
+import imp
+import nose
from os import path
-for pth in ['.', './lib', './test']:
- sys.path.insert(0, path.join(path.dirname(path.abspath(__file__)), pth))
+#for pth in ['.', './lib', './test']:
+# sys.path.insert(0, path.join(path.dirname(path.abspath(__file__)), pth))
-from plugin.noseplugin import NoseSQLAlchemy
-import nose
+path = "lib/sqlalchemy/testing/plugin/noseplugin.py"
+noseplugin = imp.load_source("noseplugin", path)
+
-nose.main(addplugins=[NoseSQLAlchemy()])
+nose.main(addplugins=[noseplugin.NoseSQLAlchemy()])