Re: [Zope-dev] Running the 3.4 KGS tests: 9 fail, 6 errors

2008-07-29 Thread Marius Gedminas
On Sun, Jul 27, 2008 at 02:18:23PM +0300, Marius Gedminas wrote:
> I finally discovered zope.release (and by "discovered" I mean Stephan
> Richter told me about it on IRC, again, but this time I had the time to
> take a look).  It has a script that generates a buildout of all the KGS
> packages so you could run the tests on all of them:
> 
>   svn co svn+ssh://svn.zope.org/repos/main/zope.release/branches/3.4 
> zope.release
>   cd zope.release
>   buildout
>   bin/generate-buildout
>   cd test
>   buildout
> 
> For some reason, the test script tries to run all the tests found in my
> /usr/lib/python2.5/site-packages, some of which then fail.
> 
>   vi bin/test
> remove site-packages

This also happens if I use python2.4 bootstrap.py && bin/buildout
instead of using my system-wide easy_installed zc.builbout.

> I see 9 failures and 4 errors on my system (Python 2.5 on 32-bit Linux):

And today I see 13 failures and 5 errors on Python 2.5 on 64-bit Linux,
but only 9 failures and 3 errors on Python 2.4 on the same 64-bit Linux.

>   * the test runner keels over at the end of the unit test run, with
> AttributeError: 'module' object has no attribute 'DemoLayer'

This is caused by z3c.skin.pagelet 1.0.2, which has a
z3c/skin/pagelet/testing.py with

  TestLayer = ZCMLLayer(
  os.path.join(os.path.split(__file__)[0], 'ftesting.zcml'),
  __name__, 'DemoLayer', allow_teardown=True)

The test runner should verify this during import time and complain
early, instead of crashing in the middle of the run.

I also don't know why this doesn't always trigger the crash.  The test
runner has some sort of a layer cache, that might explain it.

> I think I'll run the test suite again on a 64-bit Linux machine, for
> extra fun.  And maybe do that for Python 2.4 as well.

Did that.

Marius Gedminas
-- 
Always forgive your enemies.  Nothing annoys them more.
-- Oscar Wilde 


signature.asc
Description: Digital 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] Running the 3.4 KGS tests: 9 fail, 6 errors

2008-07-27 Thread Shane Hathaway

Marius Gedminas wrote:

I think I'll run the test suite again on a 64-bit Linux machine, for
extra fun.  And maybe do that for Python 2.4 as well.


zope.proxy and related modules failed badly under 64 bit Python 2.5 
until I fixed the C code on the trunk 2 weeks ago, however, I don't 
think my changes landed in the KGS.  I also fixed broken tests.  Should 
I backport my changes?  I don't know whether a release is planned soon.


Shane

___
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 )