[Zope-CMF] Test setup problems with Zope 2.13

yuppie y.2010 at wcm-solutions.de
Thu Jul 22 07:37:40 EDT 2010


Hi Hanno!


Hanno Schlichting wrote:
> Looks like nobody feels like jumping into the test layers waters.

Finally found some time to look into this.

> Unless someone does in the next days, I'll revert the OFS / OFSP
> refactoring on Zope trunk.

AFAICS this is the point where you went astray:

http://svn.zope.org/?rev=114576&view=rev

If you revert that revision and fix installPackage instead of trying to 
work around the bug everything seems to work fine. I'm not in the mood 
to write tests for installPackage and to figure out what else needs to 
be reverted, so I just attached my patch.

Cheers,

	Yuppie



Index: Zope2/src/Testing/ZopeTestCase/ZopeLite.py
===================================================================
--- Zope2/src/Testing/ZopeTestCase/ZopeLite.py	(revision 114921)
+++ Zope2/src/Testing/ZopeTestCase/ZopeLite.py	(working copy)
@@ -194,6 +194,7 @@
      from OFS.metaconfigure import has_package
      return has_package(name)

+ at layer.onsetup
  def installPackage(name, quiet=0):
      '''Installs a registered Python package.'''
      quiet = 1 # Ignore argument
@@ -218,6 +219,7 @@
              if not quiet: _print('Installing %s ... NOT FOUND\n' % name)

  installProduct('PluginIndexes', 1)  # Must install first
+installPackage('OFS', 1)

  # So people can use ZopeLite.app()
  app = Zope2.app


More information about the Zope-CMF mailing list