[Zope-CMF] Re: GenericSetup trunk: failing tests

Tres Seaver tseaver at palladion.com
Wed Feb 6 16:27:03 EST 2008


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Wichert Akkerman wrote:

> Previously Tres Seaver wrote:
>>
>> I get the follwing failures:
>>
>>

<snip>

>>
>> and 11 more just like it.  Does anybody have a clue what is wrong?  This
>> is with a fresh checkout, in an instance which has no other products
>> installed.
> 
> Seems to work for me using Zope 2.10.4:
> 
> [snow;..l/instances/cmfout]-143> bin/instance test -s Products.GenericSetup
> Running tests at level 1
> Installing GenericSetup ... done (0.011s)
> Running unit tests:
>   Running:
> .................................................................................................................................................................................................
>   Ran 193 tests with 0 failures and 0 errors in 0.979 seconds.
> Running Products.GenericSetup.testing.ExportImportZCMLLayer tests:
>   Set up Products.GenericSetup.testing.ExportImportZCMLLayer in 0.932 seconds.
>   Running:
> ..........................................................................................................................................................................................
>   Ran 186 tests with 0 failures and 0 errors in 1.505 seconds.
> Tearing down left over layers:
>   Tear down Products.GenericSetup.testing.ExportImportZCMLLayer in 0.001 seconds.
> Total: 379 tests, 0 failures, 0 errors
> 
> Did something change in the Zope 2.10 branch?

Hmm, I'm not sure how you built your instance.  Here is what I did to
try to reproduce against 2.10.4:

 $ cd /tmp
 $ wget http://www.zope.org/Products/Zope/2.10.4/Zope-2.10.4-final.tgz
 $ tar xzf Zope-2.10.4-final.tgz
 $ cd Zope-2.10.4
 $ ./configure --with-python=/path/to/python --prefix=/tmp/z2104
 ...
 $ make && make install
 ...
 $ cd ../z2104
 $ bin/mkzopeinstance.py -d /tmp/inst -u admin:123
 ...
 $ cd ../tmp/inst/Products
 $ svn co $ZSVN/Products.GenericSetup/trunk/Proudcts/GenericSetup
 ...
 $ cd ..
 $ bin/zopect test -s Products.GenericSetup
 ...
 Running unit tests:
  Running:
  ...
  Ran 193 tests with 0 failures and 0 errors in 0.993 seconds.
  Running Products.GenericSetup.testing.ExportImportZCMLLayer tests:
    Set up Products.GenericSetup.testing.ExportImportZCMLLayer in \
        0.513 seconds.
  Running:
  ...
  Error in test test_createSnapshot_default \
    (Products.GenericSetup.tests.test_tool.SetupToolTests)
  Traceback (most recent call last):
  ...
    File "/tmp/z2104/lib/python/Testing/ZopeTestCase/profiler.py", \
        line 98, in __call__
    testMethod()
    File "/tmp/inst/Products/GenericSetup/tests/test_tool.py", \
        line 697, in test_createSnapshot_default
      result = tool.createSnapshot( 'default' )
    File "/tmp/inst/Products/GenericSetup/tool.py", line 443, \
         in createSnapshot
      messages[step_id] = handler(context)
    File "/tmp/inst/Products/GenericSetup/components.py", line 257, \
        in exportComponentRegistry
      sm = getSiteManager(context.getSite())
    File "/tmp/z2104/lib/python/zope/component/_api.py", line 48, \
        in getSiteManager
      raise ComponentLookupError(*error.args)
  ComponentLookupError: ('Could not adapt', <Folder at /site>, \
        <InterfaceClass zope.component.interfaces.IComponentLookup>)

   <snip 11 other similar failures in the test_tool module)

   Ran 183 tests with 0 failures and 12 errors in 1.568 seconds.
  Tearing down left over layers:
    Tear down Products.GenericSetup.testing.ExportImportZCMLLayer \
        in 0.001 seconds.
  Total: 376 tests, 0 failures, 12 errors


This is same set of failurs as in my "normal" sandbox using the head of
the 2.10 branch.  What other stuff is installed in the environment where
your tests were running?



Tres.
- --
===================================================================
Tres Seaver          +1 540-429-0999          tseaver at 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

iD8DBQFHqiYn+gerLs4ltQ4RAjjmAJ46MrsWal4fVdSkFXUa6D7kF6FkpwCcDgDM
6k6MpLiUBxNGpmwAFW74fi8=
=6NBo
-----END PGP SIGNATURE-----



More information about the Zope-CMF mailing list