summaryrefslogtreecommitdiff
path: root/sqla_nose.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2012-09-30 11:03:27 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2012-09-30 11:03:27 -0400
commit9e5e1984d113ff93186edc86c84c71197d4005be (patch)
tree1a5e82085b5af79b73dff48315788538e5070f85 /sqla_nose.py
parentc0bba142689c7a83a3001dc1761aeabdfaaf45a6 (diff)
downloadsqlalchemy-9e5e1984d113ff93186edc86c84c71197d4005be.tar.gz
fix the path here
Diffstat (limited to 'sqla_nose.py')
-rwxr-xr-xsqla_nose.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/sqla_nose.py b/sqla_nose.py
index 7865fc978..3e3540c41 100755
--- a/sqla_nose.py
+++ b/sqla_nose.py
@@ -7,17 +7,16 @@ 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']:
+ sys.path.insert(0, path.join(path.dirname(path.abspath(__file__)), pth))
+# installing without importing SQLAlchemy, so that coverage includes
+# SQLAlchemy itself.
path = "lib/sqlalchemy/testing/plugin/noseplugin.py"
noseplugin = imp.load_source("noseplugin", path)