[Zope-Coders] testrunner.py vs. test.py
Andreas Jung
andreas at andreas-jung.com
Sat May 15 02:32:51 EDT 2004
--On Samstag, 15. Mai 2004 1:51 Uhr -0400 Fred Drake <fred at zope.com> wrote:
> On Saturday 15 May 2004 01:47 am, Andreas Jung wrote:
> > What is the recommended way for the future to run unittests? In the
> output > of the daily
> > tests I see that some tests fails while I don't see any error when I
> > running all tests
> > with testrunner.py -a...any ideas?
>
> For which versions of Zope? At this point, if test.py is present at the
> top level, that should be the way to run the tests. testrunner.py is
> obsolete and hasn't been maintained for a while.
>
Almost most of the test failing have a problem with something in
AccessControl:
======================================================================
ERROR: testTraverse5
(Products.SiteAccess.tests.testVirtualHostMonster.VHMRegressions)
----------------------------------------------------------------------
Traceback (most recent call last):
File
"/develop/sandboxes/Zope-2_7-branch/lib/python/Products/SiteAccess/tests/testVirtualHostMonster.py",
line 25, in setUp
self.app = makerequest(Zope.app())
File "/develop/sandboxes/Zope-2_7-branch/lib/python/Zope/__init__.py",
line 53, in app
configure()
File "/develop/sandboxes/Zope-2_7-branch/lib/python/Zope/Startup/run.py",
line 35, in configure
starter.setupSecurityOptions()
File
"/develop/sandboxes/Zope-2_7-branch/lib/python/Zope/Startup/__init__.py",
line 106, in setupSecurityOptions
AccessControl.setImplementation(
AttributeError: 'NoneType' object has no attribute
'security_policy_implementation'
Running the tests for lib/python/AccessControl and
lib/python/Products/SiteAccess shows
the errors directly...no idea about the reason.
-aj
More information about the Zope-Coders
mailing list