]> git.ipfire.org Git - thirdparty/sqlalchemy/sqlalchemy.git/commitdiff
fix the path here
authorMike Bayer <mike_mp@zzzcomputing.com>
Sun, 30 Sep 2012 15:03:27 +0000 (11:03 -0400)
committerMike Bayer <mike_mp@zzzcomputing.com>
Sun, 30 Sep 2012 15:03:27 +0000 (11:03 -0400)
sqla_nose.py

index 7865fc978dd9c4b5eda9341641eea5da1f38ba68..3e3540c4129fbea7b0564ab3b7ffb63f20a88919 100755 (executable)
@@ -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)