-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Martin Aspeli wrote: > Hi, > > I'm running the plone.z3cform tests in a Zope 2.10 instance with > zope.testing 3.8 installed. > > All other tests seem to work OK, but with plone.z3cform's tests, I get: > > $ ./bin/instance test -s plone.z3cform > Running tests at level 1 > Running plone.z3cform.testing_zcml_layer tests: > Set up plone.z3cform.testing_zcml_layer in 0.972 seconds. > Running: > .......................... > Ran 26 tests with 0 failures and 0 errors in 0.219 seconds. > Running zope.testing.testrunner.layer.UnitTests tests: > Tear down plone.z3cform.testing_zcml_layer ... not supported > Exception in thread Thread-1: > Traceback (most recent call last): > File > "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py", > > line 442, in __bootstrap > self.run() > File > "/opt/local/Library/Frameworks/Python.framework/Versions/2.4/lib/python2.4/threading.py", > > line 422, in run > self.__target(*self.__args, **self.__kwargs) > File > "/Users/optilude/.buildout/eggs/zope.testing-3.8.0-py2.4.egg/zope/testing/testrunner/runner.py", > > line 418, in spawn_layer_in_subprocess > while nfail > 0: > UnboundLocalError: local variable 'nfail' referenced before assignment > > Total: 26 tests, 0 failures, 0 errors in 5.626 seconds. > > The tests are here: > http://svn.zope.org/repos/main/plone.z3cform/trunk/plone/z3cform/tests.py > > Any ideas?
I would just use the version of zope.testing which shipped with Zope 2.10? That would be 3.0, I think: $ svn propget svn:externals \ projects/Zope-CVS/Zope-2.10-branch/lib/python/zope | grep testing testing \ svn://svn.zope.org/repos/main/zope.testing/tags/3.0/src/zope/testing Tres. - -- =================================================================== Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software "Excellence by Design" http://palladion.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKcdyK+gerLs4ltQ4RApNjAJoCIJ4hNx08eF/PKj3y/L051dUkhwCeLN7K K3q1e+tiIaUghczSiE95dYc= =3033 -----END PGP SIGNATURE----- _______________________________________________ Zope-Dev maillist - Zope-Dev@zope.org http://mail.zope.org/mailman/listinfo/zope-dev ** No cross posts or HTML encoding! ** (Related lists - http://mail.zope.org/mailman/listinfo/zope-announce http://mail.zope.org/mailman/listinfo/zope )