From 9e5e1984d113ff93186edc86c84c71197d4005be Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 30 Sep 2012 11:03:27 -0400 Subject: [PATCH] fix the path here --- sqla_nose.py | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/sqla_nose.py b/sqla_nose.py index 7865fc978d..3e3540c412 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) -- 2.47.3