[Zope-dev] Test failure in zope.traversing 3.7.0

Tres Seaver tseaver at palladion.com
Tue May 26 12:53:02 EDT 2009


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

Andreas Jung wrote:
> I get the following failure while running the Zope 2.12 tests:
> 
> ajung at suxmac2:~/sandboxes/Zope-2.12/2.12 bin/alltests             
> Test-module import failures:
> 
> Module: zope.traversing.tests.test_vhosting
> 
> Traceback (most recent call last):
>   File
> "/Users/ajung/.buildout/eggs/zope.traversing-3.7.0-py2.5.egg/zope/traversing/tests/test_vhosting.py",
> line 28, in <module>
>     from zope.app.zptpage.zptpage import ZPTPage
>   File
> "/Users/ajung/.buildout/eggs/zope.app.zptpage-3.5.0-py2.5.egg/zope/app/zptpage/__init__.py",
> line 18, in <module>
>     from zptpage import ZPTPage
>   File
> "/Users/ajung/.buildout/eggs/zope.app.zptpage-3.5.0-py2.5.egg/zope/app/zptpage/zptpage.py",
> line 29, in <module>
>     from zope.app.pagetemplate.engine import AppPT
> ImportError: No module named engine

'alltests' is likely to break frequently during refactorings, I'm
afraid.  I ran 'bin/test --all' before committing changes, but didn't
run that one.

That test is intrinsically broken on a couple of axes:

- - It depends on 'zope.app.zptpage' to create a renderable object (ACK!)

- - It depends on other 'zope.app.*' packages inappropriately.

- - It imports a bunch of stuff at module scope.

- - It tests too much in individual methods.

I will update the tests to remove all 'zope.app' dependencies, which
will fix this problem when I release the new egg.


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

iD8DBQFKHB5u+gerLs4ltQ4RAqQPAKDC3/O5nnGdD7c6uJmHWR7UVwplSACfW2CK
rSSzCVELwIDck/YmV5eo5XY=
=4sLm
-----END PGP SIGNATURE-----



More information about the Zope-Dev mailing list