fix running tests on Windows
This commit is contained in:
parent
026a3952e0
commit
96ee77cd09
|
@ -9,13 +9,19 @@ Python 2.4 or greater is required since the unit tests use decorators.
|
|||
|
||||
cd into the SQLAlchemy distribution directory.
|
||||
|
||||
Set up the PYTHONPATH:
|
||||
Set up the PYTHONPATH. In bash:
|
||||
|
||||
export PYTHONPATH=./test/
|
||||
|
||||
The unittest framework will automatically prepend './lib/' to sys.path. this forces the local
|
||||
version of SQLAlchemy to be used, bypassing any setuptools-installed installations
|
||||
(setuptools places .egg files ahead of plain directories, even if on PYTHONPATH, unfortunately).
|
||||
On windows:
|
||||
|
||||
set PYTHONPATH=test\
|
||||
|
||||
The unittest framework will automatically prepend the lib directory to
|
||||
sys.path. This forces the local version of SQLAlchemy to be used,
|
||||
bypassing any setuptools-installed installations (setuptools places
|
||||
.egg files ahead of plain directories, even if on PYTHONPATH,
|
||||
unfortunately).
|
||||
|
||||
RUNNING ALL TESTS
|
||||
-----------------
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
import sys
|
||||
sys.path.insert(0, './lib/')
|
||||
import os, unittest, StringIO, re, ConfigParser
|
||||
sys.path.insert(0, os.path.join(os.getcwd(), 'lib'))
|
||||
import sqlalchemy
|
||||
from sqlalchemy import sql, engine, pool
|
||||
import sqlalchemy.engine.base as base
|
||||
|
|
Loading…
Reference in New Issue