Login | Register For Free | Help
Search for: (Advanced)

Mailing List Archive: Zope: Dev

Test failure in zope.traversing 3.7.0

 

 

Zope dev RSS feed   Index | Next | Previous | View Threaded


lists at zopyx

May 26, 2009, 7:40 AM

Post #1 of 3 (641 views)
Permalink
Test failure in zope.traversing 3.7.0

I get the following failure while running the Zope 2.12 tests:

ajung [at] suxmac:~/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


Andreas
Attachments: lists.vcf (0.31 KB)


tseaver at palladion

May 26, 2009, 9:53 AM

Post #2 of 3 (589 views)
Permalink
Re: Test failure in zope.traversing 3.7.0 [In reply to]

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

Andreas Jung wrote:
> I get the following failure while running the Zope 2.12 tests:
>
> ajung [at] suxmac:~/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
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-----

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
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 )


tseaver at palladion

May 27, 2009, 9:58 AM

Post #3 of 3 (584 views)
Permalink
Re: Test failure in zope.traversing 3.7.0 [In reply to]

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

Tres Seaver wrote:
> Andreas Jung wrote:
>> I get the following failure while running the Zope 2.12 tests:
>
>> ajung [at] suxmac:~/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.

Ugh. I got stuck trying to fix the tests, which are pretty nasty. As a
workaround, I just released zope.app.pagetemplate 3.7.1, which restores
the importabiltiy of the names from 'zope.app.pagetemplate.engine' via
BBB imports from 'zope.pagetemplate.engine'.


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

iD8DBQFKHXEY+gerLs4ltQ4RAvPLAKDcb46vite8XhxjhJCpjlPO7KPTEwCgpQVC
r4xLlk7rbrJsI5g58r1eTtA=
=41fU
-----END PGP SIGNATURE-----

_______________________________________________
Zope-Dev maillist - Zope-Dev [at] zope
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 RSS feed   Index | Next | Previous | View Threaded
 
 


Interested in having your list archived? Contact Gossamer Threads
 
  Web Applications & Managed Hosting Powered by Gossamer Threads Inc.