From d22e0ca985caacd9bd44c977ecb6df0de15fcabd Mon Sep 17 00:00:00 2001 From: Shane Hathaway <shane@hathawaymix.org> Date: Wed, 12 Jun 2002 20:39:20 +0000 Subject: [PATCH] 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. --- trunk/src/ZODB/tests/testZODB.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/trunk/src/ZODB/tests/testZODB.py b/trunk/src/ZODB/tests/testZODB.py index 90a583f3..5cbf56b2 100644 --- a/trunk/src/ZODB/tests/testZODB.py +++ b/trunk/src/ZODB/tests/testZODB.py @@ -1,7 +1,5 @@ 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 -- 2.30.9