[Zope3-dev] Linux Test Results - Zope 3 - Not OK :-(

Guido van Rossum guido@python.org
Tue, 31 Dec 2002 08:52:39 -0500


> > Running tests from /stuff/chrisw/ZopeTests/sandbox/Zope3
> > No module named _persistence
> [...]
> > ImportError: No module named _persistence
> 
> I saw this error yesterday.  In my case it was caused by a stale build/
> directory ('make test' builds all the extension modules in-place, but
> test.py finds an existing (stale) build/ subdir and runs the tests there
> instead).  All was fine after rm -rf build.
> 
> I suppose that running 'make build' or 'make test_build' should also
> work, but it fails to remove obsolete files from build/ (e.g. if you
> remove a test module, and try to run the tests out-of-place, that module
> remains inside build/ tree and gets run).

I propose that we add an explicit option to test.py to use the build
subtree, rather than trying to guess.  Guessing is too error-prone.

--Guido van Rossum (home page: http://www.python.org/~guido/)