From: Mike Bayer Date: Sun, 30 Sep 2012 15:03:27 +0000 (-0400) Subject: fix the path here X-Git-Tag: rel_0_8_0b1~100 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=9e5e1984d113ff93186edc86c84c71197d4005be;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git fix the path here --- 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)