fix running tests on Windows

This commit is contained in:
Jonathan Ellis 2007-06-01 04:55:17 +00:00
parent 026a3952e0
commit 96ee77cd09
2 changed files with 11 additions and 5 deletions

View File

@ -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
-----------------

View File

@ -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