Commit 2a74054a authored by Shane Hathaway's avatar Shane Hathaway

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.
parent 9f7a0a1d
import sys, os
sys.path[0:0] = [os.curdir, os.path.join(os.pardir, os.pardir)]
import ZODB
import ZODB.FileStorage
from ZODB.PersistentMapping import PersistentMapping
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment