[Zope-dev] Re: "make test" fails on 2.9.0-b1?
Paul Winkler
pw_lists at slinkp.com
Mon Dec 12 12:43:35 EST 2005
On Mon, Dec 12, 2005 at 05:01:35PM +0100, Philipp von Weitershausen wrote:
> I guess it should use zope.testing.testrunner instead of
> zope.app.testing.test, though I'm not sure how the parameters and
> options convert.
I don't think that's the problem:
pw at kermit Zope-2.9-branch $ svn up test.py
At revision 40739.
pw at kermit Zope-2.9-branch $ grep import test.py
import os.path, sys
from zope.testing import testrunner
import Zope2
pw at kermit Zope-2.9-branch $ make test
"/usr/bin/python" "/home/pw/Downloads/Apps/Net/Zope-2.9-branch/setup.py"
\
build_ext -i
running build_ext
running build_headers
"/usr/bin/python" "/home/pw/Downloads/Apps/Net/Zope-2.9-branch/test.py"
-v
Traceback (most recent call last):
File "/home/pw/Downloads/Apps/Net/Zope-2.9-branch/test.py", line 83,
in ?
from zope.testing import testrunner
ImportError: No module named zope.testing
make: *** [test] Error 1
Looks to me like it's a simple PYTHONPATH problem:
pw at kermit Zope-2.9-branch $ export PYTHONPATH=$PYTHONPATH:/home/pw/Downloads/Apps/Net/Zope-2.9-branch/lib/python/
pw at kermit Zope-2.9-branch $ make test
"/usr/bin/python" "/home/pw/Downloads/Apps/Net/Zope-2.9-branch/setup.py"
\
build_ext -i
running build_ext
running build_headers
"/usr/bin/python" "/home/pw/Downloads/Apps/Net/Zope-2.9-branch/test.py"
-v
Running tests at level 1
/usr/lib/python2.4/whrandom.py:38: DeprecationWarning: the whrandom
module is deprecated; please use the random module
DeprecationWarning)
/home/pw/ZopeSoftwareHome/lib/python/SearchIndex/__init__.py:19:
DeprecationWarning: The usage of the SearchIndex package is deprecated
since Zope 2.4.
This package is only kept for backwards compatibility for a while
and will go away in a future release.
Please use instead the re-factored modules in Products/PluginIndexes.
warnings.warn("The usage of the SearchIndex package is deprecated
since \
Test-module import failures:
Module: BDBStorage.tests.testall
TypeError: Invalid test_suite, None, in BDBStorage.tests.testall
Running unit tests:
Running:
..................................................
..................................................
(snip etc.)
--
Paul Winkler
http://www.slinkp.com
More information about the Zope-Dev
mailing list