2014-07-29 11:11:36 +00:00
|
|
|
diff -up SQLAlchemy-0.9.7/sqla_nose.py.nose-use-build SQLAlchemy-0.9.7/sqla_nose.py
|
|
|
|
--- SQLAlchemy-0.9.7/sqla_nose.py.nose-use-build 2014-07-29 13:07:44.151453336 +0200
|
|
|
|
+++ SQLAlchemy-0.9.7/sqla_nose.py 2014-07-29 13:09:15.096785664 +0200
|
|
|
|
@@ -11,13 +11,14 @@ import nose
|
2014-05-15 08:14:17 +00:00
|
|
|
import warnings
|
2013-04-30 02:46:10 +00:00
|
|
|
|
2014-07-29 11:11:36 +00:00
|
|
|
|
2013-04-30 02:46:10 +00:00
|
|
|
+import glob
|
|
|
|
from os import path
|
|
|
|
-for pth in ['./lib']:
|
|
|
|
+for pth in glob.glob('build/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"
|
|
|
|
+path = glob.glob("build/lib*/sqlalchemy/testing/plugin/noseplugin.py")[0]
|
2014-07-29 11:11:36 +00:00
|
|
|
if sys.version_info >= (3, 3):
|
2014-06-30 11:11:54 +00:00
|
|
|
from importlib import machinery
|
|
|
|
noseplugin = machinery.SourceFileLoader("noseplugin", path).load_module()
|