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

Marius Gedminas marius at gedmin.as
Tue Jul 29 17:19:45 EDT 2008


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 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 191 bytes
Desc: Digital signature
Url : http://mail.zope.org/pipermail/zope-dev/attachments/20080730/a3b3eded/attachment.bin


More information about the Zope-Dev mailing list