[Zodb-checkins] CVS: Zope/lib/python/ZODB/tests - testZODB.py:1.2
Shane Hathaway
shane@cvs.zope.org
Wed, 12 Jun 2002 16:39:20 -0400
Update of /cvs-repository/Zope/lib/python/ZODB/tests
In directory cvs.zope.org:/tmp/cvs-serv5054/lib/python/ZODB/tests
Modified Files:
testZODB.py
Log Message:
It's really not safe for unit test modules to change sys.path. Doing
so makes the full suite brittle. Cleaned out all the places where unit
tests change sys.path. (Use the PYTHONPATH environment variable instead.)
Also brought SearchIndex tests up to date, which I didn't really need to do
since SearchIndex is deprecated, but I did it as part of figuring out the
failed Interface tests, so I might as well check in my work. ;-) One of the
test modules in SearchIndex forgets to define a global named "Dummy",
actually, so all the tests were failing before this checkin anyway.
=== Zope/lib/python/ZODB/tests/testZODB.py 1.1 => 1.2 ===
-sys.path[0:0] = [os.curdir, os.path.join(os.pardir, os.pardir)]
-
import ZODB
import ZODB.FileStorage
from ZODB.PersistentMapping import PersistentMapping