[Zope-dev] Zope Tests: 3 OK, 5 Failed
Summary of messages to the zope-tests list. Period Wed Jul 29 12:00:00 2009 UTC to Thu Jul 30 12:00:00 2009 UTC. There were 8 messages: 8 from Zope Tests. Test failures - Subject: FAILED (failures=1) : Zope-2.12 Python-2.6.2 : Linux From: Zope Tests Date: Wed Jul 29 20:50:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012178.html Subject: FAILED (failures=1) : Zope-2.12-alltests Python-2.4.6 : Linux From: Zope Tests Date: Wed Jul 29 20:52:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012179.html Subject: FAILED (failures=7) : Zope-2.12-alltests Python-2.6.2 : Linux From: Zope Tests Date: Wed Jul 29 20:54:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012180.html Subject: FAILED (failures=1) : Zope-trunk Python-2.6.2 : Linux From: Zope Tests Date: Wed Jul 29 20:56:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012181.html Subject: FAILED (failures=7) : Zope-trunk-alltests Python-2.6.2 : Linux From: Zope Tests Date: Wed Jul 29 20:58:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012182.html Tests passed OK --- Subject: OK : Zope-2.10 Python-2.4.6 : Linux From: Zope Tests Date: Wed Jul 29 20:44:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012175.html Subject: OK : Zope-2.11 Python-2.4.6 : Linux From: Zope Tests Date: Wed Jul 29 20:46:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012176.html Subject: OK : Zope-2.12 Python-2.4.6 : Linux From: Zope Tests Date: Wed Jul 29 20:48:56 EDT 2009 URL: http://mail.zope.org/pipermail/zope-tests/2009-July/012177.html ___ 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 )
[Zope-dev] zope.testing 3.8 fails in mysterious ways
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? Martin -- Author of `Professional Plone Development`, a book for developers who want to work with Plone. See http://martinaspeli.net/plone-book ___ 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 )
Re: [Zope-dev] Integrating Five code properly into Zope2?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hanno Schlichting wrote: Hi. I'd like to push code and ZCML from Products.Five into the appropriate places in Zope2. For example event.zcml registering events for OFS items, should live in the OFS package. i18n.zcml setting up stuff for the request or the publisher should live in the ZPublisher package, security bridging code for zope.security vs. AccessControl should go into AccessControl, test setup and support code should live in Testing, ... startup code and site.zcml handling should live in the Zope2.Startup package and so on. There's probably some bridging code left in Five which has no real place to go in Zope2. Like formlib wrapping / bridging code - I'd leave this in Five for the time being until we get a clearer picture of what is actually left in there. +1 in general, as long as we don't let any zope.app dependencies leak out while this happens. I would also be +1 to removing the formlib and viewlet integration into separate eggs: I don't think either of them belongs in core Zope2 at all, and anybody who wants the features should be able to pull in the eggs (call them 'five.formlib' and 'five.viewlets', or something). Given our current deprecation policy, I'd leave indefinite backwards compatibility imports in place and do the same for ZCML files. It would be work targeted at the lucky numbered Zope 2.13 ;-) Do people generally agree with this direction? Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKcdvB+gerLs4ltQ4RAgBxAKDPuibqOixBJeq4rqoy0hIA6UOmFwCghNV6 d0q0OcjWROdQqdCG+dJFzCg= =wRG6 -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 )
Re: [Zope-dev] zope.testing 3.8 fails in mysterious ways
-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 Designhttp://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 )
Re: [Zope-dev] Integrating Five code properly into Zope2?
On Thu, Jul 30, 2009 at 7:43 PM, Tres Seavertsea...@palladion.com wrote: Hanno Schlichting wrote: I'd like to push code and ZCML from Products.Five into the appropriate places in Zope2. +1 in general, as long as we don't let any zope.app dependencies leak out while this happens. Hhm, personally I don't care that much if we fix and remove the zope.app dependencies later on from Five or somewhere else inside the Zope2 distribution. But I'll try to keep an eye on that. I would also be +1 to removing the formlib and viewlet integration into separate eggs: I don't think either of them belongs in core Zope2 at all, and anybody who wants the features should be able to pull in the eggs (call them 'five.formlib' and 'five.viewlets', or something). I thought about that as well for a while. If more people agree on that, I think this is sensible to do. For both of these leaving indefinite compatibility imports in place that point to the new packages defeats the purpose of loosing the dependencies, though. So how exactly would a deprecation of this code look like? Make the two new five.* distributions available with the current code now, use zope.deprecation to import but warn about the removal in 2.13 and remove the whole code in 2.14? Or can we still stick the deprecation into 2.12 and already remove in 2.13? Hanno ___ 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 )
Re: [Zope-dev] Integrating Five code properly into Zope2?
-BEGIN PGP SIGNED MESSAGE- Hash: SHA1 Hanno Schlichting wrote: On Thu, Jul 30, 2009 at 7:43 PM, Tres Seavertsea...@palladion.com wrote: I would also be +1 to removing the formlib and viewlet integration into separate eggs: I don't think either of them belongs in core Zope2 at all, and anybody who wants the features should be able to pull in the eggs (call them 'five.formlib' and 'five.viewlets', or something). I thought about that as well for a while. If more people agree on that, I think this is sensible to do. For both of these leaving indefinite compatibility imports in place that point to the new packages defeats the purpose of loosing the dependencies, though. So how exactly would a deprecation of this code look like? Make the two new five.* distributions available with the current code now, use zope.deprecation to import but warn about the removal in 2.13 and remove the whole code in 2.14? Or can we still stick the deprecation into 2.12 and already remove in 2.13? +1 to the latter, with a prominent note in the changelogs. Tres. - -- === Tres Seaver +1 540-429-0999 tsea...@palladion.com Palladion Software Excellence by Designhttp://palladion.com -BEGIN PGP SIGNATURE- Version: GnuPG v1.4.6 (GNU/Linux) Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org iD8DBQFKceV9+gerLs4ltQ4RAgVxAJ4m8jiC4eonh2gkRbUojNa0aQFo6wCfVoLY Gh9Iya3A2tKLz5lY9B6+ta0= =hFaq -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 )
Re: [Zope-dev] zope.testing 3.8 fails in mysterious ways
Tres Seaver wrote: -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 Unfortunately, I've got other packages that depend on a newer zope.testing (specifically, collective.testcaselayer). But I thought zope.testing aimed to be able to run any valid tests, so it sounds like a bug in zope.testing regardless, at least since every other test I've run in the same instance work fine. Martin -- Author of `Professional Plone Development`, a book for developers who want to work with Plone. See http://martinaspeli.net/plone-book ___ 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 )
Re: [Zope-dev] zope.testing 3.8 fails in mysterious ways
On Thu, Jul 30, 2009 at 9:33 PM, Martin Aspelioptilude+li...@gmail.com wrote: Unfortunately, I've got other packages that depend on a newer zope.testing (specifically, collective.testcaselayer). But I thought zope.testing aimed to be able to run any valid tests, so it sounds like a bug in zope.testing regardless, at least since every other test I've run in the same instance work fine. The traceback you pasted shows an UnboundLocalError. What about looking at the source and figuring out why that local variable is not defined? -- Sidnei ___ 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 )