[Testbot] Plone 5.1 - Python 2.7 - Build # 47 - Still Failing!

jenkins at plone.org jenkins at plone.org
Tue May 2 11:04:26 UTC 2017


Plone 5.1 - Python 2.7 - Build # 47 - Still Failing:

Check console output at http://jenkins.plone.org/job/plone-5.1-python-2.7/47/ to view the results.

Changes:

[Philip Bauer] use newer zope.app.wsgi







Test Results:

66 tests failed.
FAILED:  plone.app.testing.helpers.rst

Error Message:
Failed doctest test for helpers.rst

Stack Trace:
Failed doctest test for helpers.rst
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 139, in helpers.rst
Failed example:
    runner.setup_layer(options, HELPER_DEMOS_INTEGRATION_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[12]>", line 1, in <module>
        runner.setup_layer(options, HELPER_DEMOS_INTEGRATION_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 151, in helpers.rst
Failed example:
    queryUtility(Interface, name="dummy1")
Expected:
    <object object at ...>
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 154, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[16]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 162, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print is_installed(portal, 'plone.app.testing')
        portal.portal_setup.getLastVersionForProfile('plone.app.testing:default') == UNKNOWN
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[18]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 174, in helpers.rst
Failed example:
    HELPER_DEMOS_INTEGRATION_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[23]>", line 1, in <module>
        HELPER_DEMOS_INTEGRATION_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.py", line 274, in testSetUp
        self['portal'] = portal = self['app'][PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 184, in helpers.rst
Failed example:
    portal = HELPER_DEMOS_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[27]>", line 1, in <module>
        portal = HELPER_DEMOS_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 186, in helpers.rst
Failed example:
    getSecurityManager().getUser().getRolesInContext(portal)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[28]>", line 1, in <module>
        getSecurityManager().getUser().getRolesInContext(portal)
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 189, in helpers.rst
Failed example:
    getSecurityManager().getUser().getUserName() == TEST_USER_NAME
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 191, in helpers.rst
Failed example:
    getSecurityManager().getUser().getId() == TEST_USER_ID
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 194, in helpers.rst
Failed example:
    helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[32]>", line 1, in <module>
        helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 195, in helpers.rst
Failed example:
    repr(getSecurityManager()) != sm_repr
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 197, in helpers.rst
Failed example:
    getSecurityManager().getUser().getRolesInContext(portal)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[34]>", line 1, in <module>
        getSecurityManager().getUser().getRolesInContext(portal)
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 204, in helpers.rst
Failed example:
    helpers.login(portal, TEST_USER_NAME)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[37]>", line 1, in <module>
        helpers.login(portal, TEST_USER_NAME)
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 205, in helpers.rst
Failed example:
    getSecurityManager().getUser().getUserName() == TEST_USER_NAME
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 209, in helpers.rst
Failed example:
    portal._setObject('folder1', Folder('folder1'))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[40]>", line 1, in <module>
        portal._setObject('folder1', Folder('folder1'))
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 214, in helpers.rst
Failed example:
    HELPER_DEMOS_INTEGRATION_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[41]>", line 1, in <module>
        HELPER_DEMOS_INTEGRATION_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.py", line 278, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 223, in helpers.rst
Failed example:
    queryUtility(Interface, name="dummy1")
Expected:
    <object object at ...>
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 226, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
        print is_installed(portal, 'plone.app.testing')
        'folder1' in portal.objectIds()
        portal.portal_setup.getLastVersionForProfile('plone.app.testing:default') == UNKNOWN
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[47]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 240, in helpers.rst
Failed example:
    runner.tear_down_unneeded(options, [l for l in setupLayers if l not in (HELPER_DEMOS_INTEGRATION_TESTING, HELPER_DEMOS_FIXTURE,)], setupLayers)
Expected:
    Tear down plone.app.testing.layers.HelperDemos:Integration in ... seconds.
    Tear down HelperDemos in ... seconds.
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 247, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
        print is_installed(portal, 'plone.app.testing')
        portal.portal_setup.getLastVersionForProfile('plone.app.testing:default') == UNKNOWN
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[50]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 257, in helpers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 352, in helpers.rst
Failed example:
    runner.setup_layer(options, MY_INTEGRATION_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[59]>", line 1, in <module>
        runner.setup_layer(options, MY_INTEGRATION_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 361, in helpers.rst
Failed example:
    queryUtility(Interface, name="dummy1")
Expected:
    <object object at ...>
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 364, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[61]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 368, in helpers.rst
Failed example:
    someGlobal['test']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[62]>", line 1, in <module>
        someGlobal['test']
    KeyError: 'test'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 377, in helpers.rst
Failed example:
    'plone.app.testing:dummy1' in _profile_registry.listProfiles()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 381, in helpers.rst
Failed example:
    'import1' in _import_step_registry.listSteps()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 385, in helpers.rst
Failed example:
    'export1' in _export_step_registry.listSteps()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 389, in helpers.rst
Failed example:
    'dummy_plugin1' in PluggableAuthService.MultiPlugins
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 393, in helpers.rst
Failed example:
    len(_upgrade_registry.getUpgradeStepsForProfile('plone.app.testing:default'))
Expected:
    1
Got:
    0
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 400, in helpers.rst
Failed example:
    runner.tear_down_unneeded(options, [l for l in setupLayers if l not in (MY_INTEGRATION_TESTING, MY_FIXTURE)], setupLayers)
Expected:
    Tear down plone.app.testing.layers.MyLayer:Integration in ... seconds.
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 406, in helpers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal.title
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest helpers.rst[79]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 413, in helpers.rst
Failed example:
    len(_profile_registry.listProfiles()) == numProfiles - 1
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 418, in helpers.rst
Failed example:
    len(_import_step_registry.listSteps()) == numImportSteps - 1
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 423, in helpers.rst
Failed example:
    len(_export_step_registry.listSteps()) == numExportSteps - 1
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 428, in helpers.rst
Failed example:
    len(_upgrade_registry.keys()) == numUpgrades - 1
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.rst", line 439, in helpers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.


  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.app.testing.layers.rst

Error Message:
Failed doctest test for layers.rst

Stack Trace:
Failed doctest test for layers.rst
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 47, in layers.rst
Failed example:
    runner.setup_layer(options, layers.PLONE_FIXTURE, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[4]>", line 1, in <module>
        runner.setup_layer(options, layers.PLONE_FIXTURE, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 61, in layers.rst
Failed example:
    with z2.zopeApp() as app:
        print app['acl_users'].getUser(SITE_OWNER_NAME)
        print app['acl_users'].getUser(SITE_OWNER_NAME).getRolesInContext(app)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[7]>", line 3, in <module>
        print app['acl_users'].getUser(SITE_OWNER_NAME).getRolesInContext(app)
    AttributeError: 'NoneType' object has no attribute 'getRolesInContext'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 70, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal['portal_registry']['plone.app.theming.interfaces.IThemeSettings.rules']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[9]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 84, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal['acl_users'].getUser(TEST_USER_NAME).getId()
        print portal['acl_users'].getUser(TEST_USER_NAME).getUserName()
        print portal['acl_users'].getUser(TEST_USER_NAME).getRolesInContext(portal)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[11]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 94, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print portal['portal_workflow'].getDefaultChain()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[12]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 100, in layers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 121, in layers.rst
Failed example:
    runner.setup_layer(options, layers.PLONE_INTEGRATION_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[18]>", line 1, in <module>
        runner.setup_layer(options, layers.PLONE_INTEGRATION_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 132, in layers.rst
Failed example:
    layers.PLONE_INTEGRATION_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[22]>", line 1, in <module>
        layers.PLONE_INTEGRATION_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.py", line 274, in testSetUp
        self['portal'] = portal = self['app'][PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 136, in layers.rst
Failed example:
    layers.PLONE_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[23]>", line 1, in <module>
        layers.PLONE_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 142, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <PersistentComponents /plone>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 148, in layers.rst
Failed example:
    getSecurityManager().getUser()
Expected:
    <PloneUser 'test-user'>
Got:
    <SpecialUser 'Anonymous User'>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 155, in layers.rst
Failed example:
    portal = layers.PLONE_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[29]>", line 1, in <module>
        portal = layers.PLONE_INTEGRATION_TESTING['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 156, in layers.rst
Failed example:
    helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[30]>", line 1, in <module>
        helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 158, in layers.rst
Failed example:
    portal._setObject('d1', SimpleItem('d1'))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[32]>", line 1, in <module>
        portal._setObject('d1', SimpleItem('d1'))
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 160, in layers.rst
Failed example:
    'd1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[33]>", line 1, in <module>
        'd1' in portal.objectIds()
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 165, in layers.rst
Failed example:
    layers.PLONE_INTEGRATION_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[34]>", line 1, in <module>
        layers.PLONE_INTEGRATION_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.py", line 278, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 172, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        'd1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[38]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 183, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <BaseGlobalComponents test-stack-2>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 188, in layers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.Plone:Integration in ... seconds.
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 210, in layers.rst
Failed example:
    runner.setup_layer(options, layers.PLONE_FUNCTIONAL_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[46]>", line 1, in <module>
        runner.setup_layer(options, layers.PLONE_FUNCTIONAL_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 221, in layers.rst
Failed example:
    layers.PLONE_FUNCTIONAL_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[50]>", line 1, in <module>
        layers.PLONE_FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.py", line 272, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 880, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 223, in layers.rst
Failed example:
    layers.PLONE_FUNCTIONAL_TESTING['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[51]>", line 1, in <module>
        layers.PLONE_FUNCTIONAL_TESTING['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 227, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <PersistentComponents /plone>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 231, in layers.rst
Failed example:
    getSecurityManager().getUser()
Expected:
    <PloneUser 'test-user'>
Got:
    <SpecialUser 'Anonymous User'>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 237, in layers.rst
Failed example:
    portal = layers.PLONE_FUNCTIONAL_TESTING['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[56]>", line 1, in <module>
        portal = layers.PLONE_FUNCTIONAL_TESTING['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 238, in layers.rst
Failed example:
    helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[57]>", line 1, in <module>
        helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 239, in layers.rst
Failed example:
    portal._setObject('d1', SimpleItem('d1'))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[58]>", line 1, in <module>
        portal._setObject('d1', SimpleItem('d1'))
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 242, in layers.rst
Failed example:
    'd1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[60]>", line 1, in <module>
        'd1' in portal.objectIds()
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 247, in layers.rst
Failed example:
    layers.PLONE_FUNCTIONAL_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[61]>", line 1, in <module>
        layers.PLONE_FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.py", line 278, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 254, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        'd1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[65]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 263, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <BaseGlobalComponents test-stack-2>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 268, in layers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.Plone:Functional in ... seconds.
    Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 289, in layers.rst
Failed example:
    runner.setup_layer(options, layers.PLONE_ZSERVER, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[73]>", line 1, in <module>
        runner.setup_layer(options, layers.PLONE_ZSERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 300, in layers.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 305, in layers.rst
Failed example:
    port == int(os.environ.get('ZSERVER_PORT', 55001))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 315, in layers.rst
Failed example:
    layers.PLONE_ZSERVER.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[83]>", line 1, in <module>
        layers.PLONE_ZSERVER.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.py", line 272, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 880, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 323, in layers.rst
Failed example:
    portal = layers.PLONE_ZSERVER['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[84]>", line 1, in <module>
        portal = layers.PLONE_ZSERVER['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 324, in layers.rst
Failed example:
    helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[85]>", line 1, in <module>
        helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 325, in layers.rst
Failed example:
    portal.title = 'Fancy Portal'
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[86]>", line 1, in <module>
        portal.title = 'Fancy Portal'
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 334, in layers.rst
Failed example:
    portal_url = portal.absolute_url()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[88]>", line 1, in <module>
        portal_url = portal.absolute_url()
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 335, in layers.rst
Failed example:
    portal_url.split(':')[:-1]
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[89]>", line 1, in <module>
        portal_url.split(':')[:-1]
    NameError: name 'portal_url' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 339, in layers.rst
Failed example:
    conn = urllib2.urlopen(portal_url + '/Title', timeout=10)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[91]>", line 1, in <module>
        conn = urllib2.urlopen(portal_url + '/Title', timeout=10)
    NameError: name 'portal_url' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 340, in layers.rst
Failed example:
    responseBody = conn.read()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[92]>", line 1, in <module>
        responseBody = conn.read()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 341, in layers.rst
Failed example:
    "Fancy Portal" in responseBody
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[93]>", line 1, in <module>
        "Fancy Portal" in responseBody
    NameError: name 'responseBody' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 343, in layers.rst
Failed example:
    conn.close()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[94]>", line 1, in <module>
        conn.close()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 347, in layers.rst
Failed example:
    layers.PLONE_ZSERVER.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[95]>", line 1, in <module>
        layers.PLONE_ZSERVER.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.py", line 278, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 362, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print 'folder1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[103]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 368, in layers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.Plone:ZServer in ... seconds.
    ...Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    ...Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 374, in layers.rst
Failed example:
    conn = urllib2.urlopen(portal_url + '/folder1', timeout=5)
Expected:
    Traceback (most recent call last):
    ...
    URLError: <urlopen error [Errno ...] Connection refused>
Got:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[105]>", line 1, in <module>
        conn = urllib2.urlopen(portal_url + '/folder1', timeout=5)
    NameError: name 'portal_url' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 394, in layers.rst
Failed example:
    runner.setup_layer(options, layers.PLONE_FTP_SERVER, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[110]>", line 1, in <module>
        runner.setup_layer(options, layers.PLONE_FTP_SERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 405, in layers.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 410, in layers.rst
Failed example:
    port == int(os.environ.get('FTPSERVER_PORT', 55002))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 420, in layers.rst
Failed example:
    layers.PLONE_FTP_SERVER.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[120]>", line 1, in <module>
        layers.PLONE_FTP_SERVER.testSetUp()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.py", line 272, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 880, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 428, in layers.rst
Failed example:
    portal = layers.PLONE_FTP_SERVER['portal'] # would normally be self.layer['portal']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[121]>", line 1, in <module>
        portal = layers.PLONE_FTP_SERVER['portal'] # would normally be self.layer['portal']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 429, in layers.rst
Failed example:
    helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[122]>", line 1, in <module>
        helpers.setRoles(portal, TEST_USER_ID, ['Manager'])
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 431, in layers.rst
Failed example:
    portal._setObject('folder1', Folder('folder1'))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[124]>", line 1, in <module>
        portal._setObject('folder1', Folder('folder1'))
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 439, in layers.rst
Failed example:
    folder_path = portal.absolute_url_path() + '/folder1'
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[126]>", line 1, in <module>
        folder_path = portal.absolute_url_path() + '/folder1'
    NameError: name 'portal' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 443, in layers.rst
Failed example:
    ftpClient.connect(host, port, timeout=5)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[129]>", line 1, in <module>
        ftpClient.connect(host, port, timeout=5)
      File "/usr/lib/python2.7/ftplib.py", line 135, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)
      File "/usr/lib/python2.7/socket.py", line 557, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -2] Name or service not known
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 449, in layers.rst
Failed example:
    ftpClient.login(SITE_OWNER_NAME, SITE_OWNER_PASSWORD)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[132]>", line 1, in <module>
        ftpClient.login(SITE_OWNER_NAME, SITE_OWNER_PASSWORD)
      File "/usr/lib/python2.7/ftplib.py", line 392, in login
        resp = self.sendcmd('USER ' + user)
      File "/usr/lib/python2.7/ftplib.py", line 248, in sendcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 452, in layers.rst
Failed example:
    ftpClient.cwd(folder_path)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[133]>", line 1, in <module>
        ftpClient.cwd(folder_path)
    NameError: name 'folder_path' is not defined
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 455, in layers.rst
Failed example:
    ftpClient.retrlines('LIST')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[134]>", line 1, in <module>
        ftpClient.retrlines('LIST')
      File "/usr/lib/python2.7/ftplib.py", line 436, in retrlines
        resp = self.sendcmd('TYPE A')
      File "/usr/lib/python2.7/ftplib.py", line 248, in sendcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 460, in layers.rst
Failed example:
    ftpClient.quit()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[135]>", line 1, in <module>
        ftpClient.quit()
      File "/usr/lib/python2.7/ftplib.py", line 591, in quit
        resp = self.voidcmd('QUIT')
      File "/usr/lib/python2.7/ftplib.py", line 253, in voidcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 465, in layers.rst
Failed example:
    layers.PLONE_FTP_SERVER.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[136]>", line 1, in <module>
        layers.PLONE_FTP_SERVER.testTearDown()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.py", line 278, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 480, in layers.rst
Failed example:
    with helpers.ploneSite() as portal:
        print 'folder1' in portal.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[144]>", line 1, in <module>
        with helpers.ploneSite() as portal:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 486, in layers.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.app.testing.layers.Plone:FTPServer in ... seconds.
    ...Tear down plone.app.testing.layers.PloneFixture in ... seconds.
    ...Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/layers.rst", line 492, in layers.rst
Failed example:
    ftpClient.connect(host, port, timeout=5)
Expected:
    Traceback (most recent call last):
    ...
    error: [Errno ...] Connection refused
Got:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest layers.rst[146]>", line 1, in <module>
        ftpClient.connect(host, port, timeout=5)
      File "/usr/lib/python2.7/ftplib.py", line 135, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)
      File "/usr/lib/python2.7/socket.py", line 557, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -2] Name or service not known


  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  src.plone.testing.z2.rst

Error Message:
Failed doctest test for z2.rst

Stack Trace:
Failed doctest test for z2.rst
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 46, in z2.rst
Failed example:
    runner.setup_layer(options, z2.STARTUP, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[10]>", line 1, in <module>
        runner.setup_layer(options, z2.STARTUP, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 55, in z2.rst
Failed example:
    z2.STARTUP['zodbDB'].storage
Expected:
    Startup
Got:
    storage object
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 76, in z2.rst
Failed example:
    with z2.zopeApp(db=z2.STARTUP['zodbDB']) as app:
        'acl_users' in app.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[16]>", line 1, in <module>
        with z2.zopeApp(db=z2.STARTUP['zodbDB']) as app:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 278, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/Zope2/__init__.py", line 52, in app
        return bobo_application(*args, **kw)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/App/ZApplication.py", line 75, in __call__
        return connection.root()[aname]
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 351, in root
        return RootConvenience(self.get(z64))
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 247, in get
        p, _ = self._storage.load(oid)
    AttributeError: 'NoneType' object has no attribute 'load'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 83, in z2.rst
Failed example:
    conn = z2.STARTUP['zodbDB'].open()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[17]>", line 1, in <module>
        conn = z2.STARTUP['zodbDB'].open()
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 760, in open
        self._cache_size_bytes,
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 116, in __init__
        storage = db._mvcc_storage
    AttributeError: 'DB' object has no attribute '_mvcc_storage'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 84, in z2.rst
Failed example:
    with z2.zopeApp(connection=conn) as app:
        'acl_users' in app.objectIds()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[18]>", line 1, in <module>
        with z2.zopeApp(connection=conn) as app:
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 88, in z2.rst
Failed example:
    conn.opened is not None
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[19]>", line 1, in <module>
        conn.opened is not None
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 91, in z2.rst
Failed example:
    conn.close()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[20]>", line 1, in <module>
        conn.close()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 132, in z2.rst
Failed example:
    len(list(getSiteManager().registeredAdapters())) > 1 # in fact, > a lot
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 137, in z2.rst
Failed example:
    getVocabularyRegistry()
Expected:
    <....Zope2VocabularyRegistry object at ...>
Got:
    <zope.schema.vocabulary.VocabularyRegistry object at 0x7f35a5887be8>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 155, in z2.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 160, in z2.rst
Failed example:
    Zope2._began_startup
Expected:
    0
Got:
    1
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 162, in z2.rst
Failed example:
    Zope2.DB is None
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 164, in z2.rst
Failed example:
    Zope2.bobo_application is None
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 198, in z2.rst
Failed example:
    runner.setup_layer(options, z2.INTEGRATION_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[38]>", line 1, in <module>
        runner.setup_layer(options, z2.INTEGRATION_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 269, in z2.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.IntegrationTesting in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 298, in z2.rst
Failed example:
    runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[65]>", line 1, in <module>
        runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 309, in z2.rst
Failed example:
    z2.FUNCTIONAL_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[67]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 880, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 314, in z2.rst
Failed example:
    app = z2.FUNCTIONAL_TESTING['app'] # would normally be self.layer['app']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[68]>", line 1, in <module>
        app = z2.FUNCTIONAL_TESTING['app'] # would normally be self.layer['app']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 315, in z2.rst
Failed example:
    app.manage_addFolder('folder1')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[69]>", line 1, in <module>
        app.manage_addFolder('folder1')
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/Folder.py", line 49, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 339, in _setObject
        self._objects = self._objects + ({'id': id, 'meta_type': t},)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 835, in register
        self._register(obj)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 845, in _register
        self.transaction_manager.get().join(self)
    AttributeError: 'NoneType' object has no attribute 'get'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 316, in z2.rst
Failed example:
    'acl_users' in app.objectIds() and 'folder1' in app.objectIds()
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 324, in z2.rst
Failed example:
    z2.FUNCTIONAL_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[73]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 919, in testTearDown
        app = self['app']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 339, in z2.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.FunctionalTesting in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 354, in z2.rst
Failed example:
    runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[81]>", line 1, in <module>
        runner.setup_layer(options, z2.FUNCTIONAL_TESTING, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 362, in z2.rst
Failed example:
    z2.FUNCTIONAL_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[83]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 880, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 366, in z2.rst
Failed example:
    app = z2.FUNCTIONAL_TESTING['app'] # would normally be self.layer['app']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[84]>", line 1, in <module>
        app = z2.FUNCTIONAL_TESTING['app'] # would normally be self.layer['app']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 376, in z2.rst
Failed example:
    app.manage_addFolder('folder1')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[87]>", line 1, in <module>
        app.manage_addFolder('folder1')
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/Folder.py", line 49, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 339, in _setObject
        self._objects = self._objects + ({'id': id, 'meta_type': t},)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 835, in register
        self._register(obj)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 845, in _register
        self.transaction_manager.get().join(self)
    AttributeError: 'NoneType' object has no attribute 'get'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 381, in z2.rst
Failed example:
    browser.open(app.absolute_url() + '/folder1')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[89]>", line 1, in <module>
        browser.open(app.absolute_url() + '/folder1')
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-3.11.1-py2.7.egg/zope/testbrowser/browser.py", line 240, in open
        self.mech_browser.open(url, data)
      File "/home/jenkins/.buildout/eggs/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py", line 203, in open
        return self._mech_open(url, data, timeout=timeout)
      File "/home/jenkins/.buildout/eggs/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py", line 216, in _mech_open
        "can't fetch relative reference: "
    BrowserStateError: can't fetch relative reference: not viewing any document
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 383, in z2.rst
Failed example:
    'folder1' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[90]>", line 1, in <module>
        'folder1' in browser.contents
    TypeError: argument of type 'NoneType' is not iterable
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 391, in z2.rst
Failed example:
    _ = app['folder1'].addDTMLMethod('index_html', file='<dtml-var foo>')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[93]>", line 1, in <module>
        _ = app['folder1'].addDTMLMethod('index_html', file='<dtml-var foo>')
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 783, in __getitem__
        raise KeyError, key
    KeyError: 'folder1'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 393, in z2.rst
Failed example:
    browser.open(app.absolute_url() + '/folder1?' + qs)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[95]>", line 1, in <module>
        browser.open(app.absolute_url() + '/folder1?' + qs)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-3.11.1-py2.7.egg/zope/testbrowser/browser.py", line 240, in open
        self.mech_browser.open(url, data)
      File "/home/jenkins/.buildout/eggs/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py", line 203, in open
        return self._mech_open(url, data, timeout=timeout)
      File "/home/jenkins/.buildout/eggs/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py", line 216, in _mech_open
        "can't fetch relative reference: "
    BrowserStateError: can't fetch relative reference: not viewing any document
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 394, in z2.rst
Failed example:
    browser.contents
Expected:
    'boo, bar & baz'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 401, in z2.rst
Failed example:
    app._setObject('file1', DummyFile('file1'))
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[98]>", line 1, in <module>
        app._setObject('file1', DummyFile('file1'))
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 339, in _setObject
        self._objects = self._objects + ({'id': id, 'meta_type': t},)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 835, in register
        self._register(obj)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 845, in _register
        self.transaction_manager.get().join(self)
    AttributeError: 'NoneType' object has no attribute 'get'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 406, in z2.rst
Failed example:
    browser.open(app.absolute_url() + '/file1')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[100]>", line 1, in <module>
        browser.open(app.absolute_url() + '/file1')
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-3.11.1-py2.7.egg/zope/testbrowser/browser.py", line 240, in open
        self.mech_browser.open(url, data)
      File "/home/jenkins/.buildout/eggs/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py", line 203, in open
        return self._mech_open(url, data, timeout=timeout)
      File "/home/jenkins/.buildout/eggs/mechanize-0.2.5-py2.7.egg/mechanize/_mechanize.py", line 216, in _mech_open
        "can't fetch relative reference: "
    BrowserStateError: can't fetch relative reference: not viewing any document
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 407, in z2.rst
Failed example:
    'The test browser also works with iterators' in browser.contents
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[101]>", line 1, in <module>
        'The test browser also works with iterators' in browser.contents
    TypeError: argument of type 'NoneType' is not iterable
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 414, in z2.rst
Failed example:
    z2.FUNCTIONAL_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[102]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 919, in testTearDown
        app = self['app']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 431, in z2.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.FunctionalTesting in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 459, in z2.rst
Failed example:
    runner.setup_layer(options, z2.ZSERVER, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[114]>", line 1, in <module>
        runner.setup_layer(options, z2.ZSERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 468, in z2.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 473, in z2.rst
Failed example:
    port == int(os.environ.get('ZSERVER_PORT', 55001))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 480, in z2.rst
Failed example:
    z2.FUNCTIONAL_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[121]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 880, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 481, in z2.rst
Failed example:
    z2.ZSERVER.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[122]>", line 1, in <module>
        z2.ZSERVER.testSetUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 880, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 487, in z2.rst
Failed example:
    app = z2.ZSERVER['app'] # would normally be self.layer['app']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[123]>", line 1, in <module>
        app = z2.ZSERVER['app'] # would normally be self.layer['app']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 488, in z2.rst
Failed example:
    app.manage_addFolder('folder1')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[124]>", line 1, in <module>
        app.manage_addFolder('folder1')
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/Folder.py", line 49, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 339, in _setObject
        self._objects = self._objects + ({'id': id, 'meta_type': t},)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 835, in register
        self._register(obj)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 845, in _register
        self.transaction_manager.get().join(self)
    AttributeError: 'NoneType' object has no attribute 'get'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 497, in z2.rst
Failed example:
    app_url.split(':')[:-1]
Expected:
    ['http', '//localhost']
Got:
    []
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 501, in z2.rst
Failed example:
    conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[129]>", line 1, in <module>
        conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
      File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
        return opener.open(url, data, timeout)
      File "/usr/lib/python2.7/urllib2.py", line 421, in open
        protocol = req.get_type()
      File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
        raise ValueError, "unknown url type: %s" % self.__original
    ValueError: unknown url type: //folder1
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 502, in z2.rst
Failed example:
    print conn.read()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[130]>", line 1, in <module>
        print conn.read()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 504, in z2.rst
Failed example:
    conn.close()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[131]>", line 1, in <module>
        conn.close()
    NameError: name 'conn' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 508, in z2.rst
Failed example:
    z2.ZSERVER.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[132]>", line 1, in <module>
        z2.ZSERVER.testTearDown()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 919, in testTearDown
        app = self['app']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 509, in z2.rst
Failed example:
    z2.FUNCTIONAL_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[133]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 919, in testTearDown
        app = self['app']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 524, in z2.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.ZServer:Functional in ... seconds.
    Tear down plone.testing.z2.ZServer in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 530, in z2.rst
Failed example:
    conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
Expected:
    Traceback (most recent call last):
    ...
    URLError: <urlopen error [Errno ...] Connection refused>
Got:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[139]>", line 1, in <module>
        conn = urllib2.urlopen(app_url + '/folder1', timeout=5)
      File "/usr/lib/python2.7/urllib2.py", line 154, in urlopen
        return opener.open(url, data, timeout)
      File "/usr/lib/python2.7/urllib2.py", line 421, in open
        protocol = req.get_type()
      File "/usr/lib/python2.7/urllib2.py", line 283, in get_type
        raise ValueError, "unknown url type: %s" % self.__original
    ValueError: unknown url type: //folder1
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 563, in z2.rst
Failed example:
    runner.setup_layer(options, z2.FTP_SERVER, setupLayers)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[146]>", line 1, in <module>
        runner.setup_layer(options, z2.FTP_SERVER, setupLayers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 708, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.4.4-py2.7.egg/zope/testrunner/runner.py", line 713, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 347, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 557, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 572, in z2.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 577, in z2.rst
Failed example:
    port == int(os.environ.get('FTPSERVER_PORT', 55002))
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 584, in z2.rst
Failed example:
    z2.FUNCTIONAL_TESTING.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[153]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testSetUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 880, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 585, in z2.rst
Failed example:
    z2.FTP_SERVER.testSetUp()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[154]>", line 1, in <module>
        z2.FTP_SERVER.testSetUp()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 880, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/zodb.py", line 30, in stackDemoStorage
        return DB(storage)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 472, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 1018, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/DB.py", line 772, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 923, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 747, in newTransaction
        assert self._storage is None
    AssertionError
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 589, in z2.rst
Failed example:
    app = z2.FTP_SERVER['app'] # would normally be self.layer['app']
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[155]>", line 1, in <module>
        app = z2.FTP_SERVER['app'] # would normally be self.layer['app']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 590, in z2.rst
Failed example:
    app.manage_addFolder('folder1')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[156]>", line 1, in <module>
        app.manage_addFolder('folder1')
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/Folder.py", line 49, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 339, in _setObject
        self._objects = self._objects + ({'id': id, 'meta_type': t},)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 835, in register
        self._register(obj)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 845, in _register
        self.transaction_manager.get().join(self)
    AttributeError: 'NoneType' object has no attribute 'get'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 594, in z2.rst
Failed example:
    ignore = app['acl_users'].userFolderAddUser('admin', 'secret', ['Manager'], ())
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[157]>", line 1, in <module>
        ignore = app['acl_users'].userFolderAddUser('admin', 'secret', ['Manager'], ())
      File "<string>", line 5, in userFolderAddUser
      File "/home/jenkins/.buildout/eggs/AccessControl-3.0.13-py2.7-linux-x86_64.egg/AccessControl/requestmethod.py", line 70, in _curried
        return callable(*args, **kw)
      File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/userfolder.py", line 65, in userFolderAddUser
        return self._doAddUser(name, password, roles, domains, **kw)
      File "/home/jenkins/.buildout/eggs/AccessControl-3.0.13-py2.7-linux-x86_64.egg/AccessControl/userfolder.py", line 410, in _doAddUser
        self.data[name] = User(name, password, roles, domains)
      File "/home/jenkins/.buildout/eggs/persistent-4.2.2-py2.7-linux-x86_64.egg/persistent/mapping.py", line 63, in __setitem__
        self.__super_setitem(key, v)
      File "/home/jenkins/.buildout/eggs/ZODB-5.2.0-py2.7.egg/ZODB/Connection.py", line 790, in setstate
        raise ConnectionStateError(msg)
    ConnectionStateError: Shouldn't load state for Persistence.mapping.PersistentMapping 0x0631933532a2bf6d when the connection is closed
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 606, in z2.rst
Failed example:
    ftpClient.connect(host, port, timeout=5)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[162]>", line 1, in <module>
        ftpClient.connect(host, port, timeout=5)
      File "/usr/lib/python2.7/ftplib.py", line 135, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)
      File "/usr/lib/python2.7/socket.py", line 557, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -2] Name or service not known
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 609, in z2.rst
Failed example:
    ftpClient.login('admin', 'secret')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[163]>", line 1, in <module>
        ftpClient.login('admin', 'secret')
      File "/usr/lib/python2.7/ftplib.py", line 392, in login
        resp = self.sendcmd('USER ' + user)
      File "/usr/lib/python2.7/ftplib.py", line 248, in sendcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 612, in z2.rst
Failed example:
    ftpClient.cwd(app_path)
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[164]>", line 1, in <module>
        ftpClient.cwd(app_path)
      File "/usr/lib/python2.7/ftplib.py", line 562, in cwd
        return self.voidcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 253, in voidcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 615, in z2.rst
Failed example:
    ftpClient.retrlines('LIST')
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[165]>", line 1, in <module>
        ftpClient.retrlines('LIST')
      File "/usr/lib/python2.7/ftplib.py", line 436, in retrlines
        resp = self.sendcmd('TYPE A')
      File "/usr/lib/python2.7/ftplib.py", line 248, in sendcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 621, in z2.rst
Failed example:
    ftpClient.quit()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[166]>", line 1, in <module>
        ftpClient.quit()
      File "/usr/lib/python2.7/ftplib.py", line 591, in quit
        resp = self.voidcmd('QUIT')
      File "/usr/lib/python2.7/ftplib.py", line 253, in voidcmd
        self.putcmd(cmd)
      File "/usr/lib/python2.7/ftplib.py", line 181, in putcmd
        self.putline(line)
      File "/usr/lib/python2.7/ftplib.py", line 176, in putline
        self.sock.sendall(line)
    AttributeError: 'NoneType' object has no attribute 'sendall'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 626, in z2.rst
Failed example:
    z2.FTP_SERVER.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[167]>", line 1, in <module>
        z2.FTP_SERVER.testTearDown()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 919, in testTearDown
        app = self['app']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 627, in z2.rst
Failed example:
    z2.FUNCTIONAL_TESTING.testTearDown()
Exception raised:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[168]>", line 1, in <module>
        z2.FUNCTIONAL_TESTING.testTearDown()
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 919, in testTearDown
        app = self['app']
      File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 28, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 642, in z2.rst
Failed example:
    runner.tear_down_unneeded(options, [], setupLayers)
Expected:
    Tear down plone.testing.z2.FTPServer:Functional in ... seconds.
    Tear down plone.testing.z2.FTPServer in ... seconds.
    Tear down plone.testing.z2.Startup in ... seconds.
    Tear down plone.testing.zca.LayerCleanup in ... seconds.
Got:
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 648, in z2.rst
Failed example:
    ftpClient.connect(host, port, timeout=5)
Expected:
    Traceback (most recent call last):
    ...
    error: [Errno ...] Connection refused
Got:
    Traceback (most recent call last):
      File "/usr/lib/python2.7/doctest.py", line 1315, in __run
        compileflags, 1) in test.globs
      File "<doctest z2.rst[174]>", line 1, in <module>
        ftpClient.connect(host, port, timeout=5)
      File "/usr/lib/python2.7/ftplib.py", line 135, in connect
        self.sock = socket.create_connection((self.host, self.port), self.timeout)
      File "/usr/lib/python2.7/socket.py", line 557, in create_connection
        for res in getaddrinfo(host, port, 0, SOCK_STREAM):
    gaierror: [Errno -2] Name or service not known


  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/usr/lib/python2.7/doctest.py", line 2226, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_aaa_migration_results_page

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_at_dx_relations_migrated_for_partialy_migrated_nested

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_backrelations_are_migrated_for_unnested_content

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_blob_file_content_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_blob_file_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_blob_image_content_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_blob_image_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_blob_newsitem_content_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_blob_newsitem_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_collection_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_comments_are_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_default_pages_are_kept_during_migration

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_document_content_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_document_excludefromnav_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_document_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_dx_at_relations_migrated_for_partially_migrated_nested

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_dx_content_is_indexed

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_dx_excl_from_nav_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_empty_image_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_export_references

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_file_content_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_file_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_folder_children_are_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_folder_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_image_content_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_image_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_link_content_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_link_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_migrate_function

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_migrate_references_with_storage_on_portal

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_migrate_xx_functions

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_migration_view_confirmation

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_modifield_date_is_unchanged

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_newsitem_content_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_newsitem_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_old_content_is_removed

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_old_content_is_unindexed

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_pact_1_0_dxevent_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 340, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 375, in test_pact_1_0_dxevent_is_migrated
    applyProfile(self.portal, 'plone.app.contenttypes:default')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/Products.CMFCore-2.2.11-py2.7.egg/Products/CMFCore/exportimport/typeinfo.py", line 225, in importTypesTool
    importObjects(tool, '', context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 849, in importObjects
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/Products.CMFCore-2.2.11-py2.7.egg/Products/CMFCore/exportimport/typeinfo.py", line 210, in _importNode
    self._initObjects(node)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 563, in _initObjects
    parent._delObject(obj_id)
  File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 407, in _delObject
    notify(ObjectRemovedEvent(ob, self, id))
  File "/home/jenkins/.buildout/eggs/zope.event-3.5.2-py2.7.egg/zope/event/__init__.py", line 31, in notify
    subscriber(event)
  File "/home/jenkins/.buildout/eggs/zope.component-3.12.1-py2.7.egg/zope/component/event.py", line 24, in dispatch
    zope.component.subscribers(event, None)
  File "/home/jenkins/.buildout/eggs/zope.component-3.12.1-py2.7.egg/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 442, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/adapter.py", line 598, in subscribers
    subscription(*objects)
  File "/home/jenkins/.buildout/eggs/zope.component-3.12.1-py2.7.egg/zope/component/event.py", line 32, in objectEventNotify
    zope.component.subscribers((event.object, event), None)
  File "/home/jenkins/.buildout/eggs/zope.component-3.12.1-py2.7.egg/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 442, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/adapter.py", line 598, in subscribers
    subscription(*objects)
  File "/home/jenkins/.buildout/eggs/plone.dexterity-2.5.1-py2.7.egg/plone/dexterity/fti.py", line 471, in ftiRemoved
    unregister(event.object)
  File "/home/jenkins/.buildout/eggs/plone.dexterity-2.5.1-py2.7.egg/plone/dexterity/fti.py", line 431, in unregister
    site_manager.unregisterUtility(provided=IDexterityFTI, name=portal_type)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_pact_1_0_dxevent_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_patct_event_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_portlets_are_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_references_are_set_correctly

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_relations_are_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_stats

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_store_references

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrateFromATContentTypesTest.test_warning_for_uneditable_content

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 67, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrationFunctionalTests.test_atct_migration_form

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 2051, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrationFunctionalTests.test_pac_installer_with_content

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 2051, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration.MigrationFunctionalTests.test_pac_installer_without_content

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration.py", line 2051, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration_custom.CustomMigrationFunctionalTests.test_custom_migration_form

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration_custom.py", line 498, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration_custom.CustomMigrationFunctionalTests.test_custom_migration_form_for_types_with_spaces

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration_custom.py", line 498, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration_custom.MigrateCustomATTest.test_migrate_atevent_to_dxevent

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration_custom.py", line 167, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration_custom.MigrateCustomATTest.test_migrate_atevent_to_dxnewsitem

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration_custom.py", line 167, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration_custom.MigrateCustomATTest.test_migrate_extended_document

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration_custom.py", line 167, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration_custom.MigrateCustomATTest.test_migration_with_custom_fieldmigrator

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration_custom.py", line 167, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration_custom.MigrateFieldsTest.test_migrate_filefield

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration_custom.py", line 36, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration_custom.MigrateFieldsTest.test_migrate_imagefield

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration_custom.py", line 36, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration_custom.MigrateFieldsTest.test_migrate_listfield

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration_custom.py", line 36, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration_custom.MigrateFieldsTest.test_migrate_richtextfield

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration_custom.py", line 36, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_migration_custom.MigrateFieldsTest.test_migrate_stringfield

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 367, in run
    self.tearDown()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_migration_custom.py", line 36, in tearDown
    applyProfile(self.portal, 'plone.app.contenttypes:uninstall')
  File "/home/jenkins/.buildout/eggs/plone.app.testing-5.0.6-py2.7.egg/plone/app/testing/helpers.py", line 140, in applyProfile
    blacklisted_steps=blacklisted_steps)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 388, in runAllImportStepsFromProfile
    dependency_strategy=dependency_strategy)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1433, in _runImportStepsFromContext
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 106, in importLayers
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 46, in _importNode
    self._initProvider(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 52, in _initProvider
    self._initLayers(node)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/exportimport.py", line 66, in _initLayers
    unregister_layer(name, site_manager=self.context)
  File "/home/jenkins/.buildout/eggs/plone.browserlayer-2.2.0-py2.7.egg/plone/browserlayer/utils.py", line 44, in unregister_layer
    name=name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.contenttypes.tests.test_upgrades_migrate_to_pa_event.MigrateEventContentTypesTest.test_pact_1_0_dxevent_is_migrated

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/home/jenkins/.buildout/eggs/unittest2-0.5.1-py2.7.egg/unittest2/case.py", line 340, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_upgrades_migrate_to_pa_event.py", line 106, in test_pact_1_0_dxevent_is_migrated
    self.doUpgradeStep('1001', '1100')
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_upgrades_migrate_to_pa_event.py", line 54, in doUpgradeStep
    ps.manage_doUpgrades(request=request)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1053, in manage_doUpgrades
    step.doStep(self)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/upgrade.py", line 166, in doStep
    self.handler(tool)
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.contenttypes/plone/app/contenttypes/migration/dxmigration.py", line 45, in migrate_to_pa_event
    'typeinfo'
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 358, in runImportStepFromProfile
    message = self._doRunImportStep(step, context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/tool.py", line 1245, in _doRunImportStep
    return handler(context)
  File "/home/jenkins/.buildout/eggs/Products.CMFCore-2.2.11-py2.7.egg/Products/CMFCore/exportimport/typeinfo.py", line 225, in importTypesTool
    importObjects(tool, '', context)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 849, in importObjects
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/.buildout/eggs/Products.CMFCore-2.2.11-py2.7.egg/Products/CMFCore/exportimport/typeinfo.py", line 210, in _importNode
    self._initObjects(node)
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 563, in _initObjects
    parent._delObject(obj_id)
  File "/home/jenkins/.buildout/eggs/Zope2-2.13.26-py2.7.egg/OFS/ObjectManager.py", line 407, in _delObject
    notify(ObjectRemovedEvent(ob, self, id))
  File "/home/jenkins/.buildout/eggs/zope.event-3.5.2-py2.7.egg/zope/event/__init__.py", line 31, in notify
    subscriber(event)
  File "/home/jenkins/.buildout/eggs/zope.component-3.12.1-py2.7.egg/zope/component/event.py", line 24, in dispatch
    zope.component.subscribers(event, None)
  File "/home/jenkins/.buildout/eggs/zope.component-3.12.1-py2.7.egg/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 442, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/adapter.py", line 598, in subscribers
    subscription(*objects)
  File "/home/jenkins/.buildout/eggs/zope.component-3.12.1-py2.7.egg/zope/component/event.py", line 32, in objectEventNotify
    zope.component.subscribers((event.object, event), None)
  File "/home/jenkins/.buildout/eggs/zope.component-3.12.1-py2.7.egg/zope/component/_api.py", line 136, in subscribers
    return sitemanager.subscribers(objects, interface)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 442, in subscribers
    return self.adapters.subscribers(objects, provided)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/adapter.py", line 598, in subscribers
    subscription(*objects)
  File "/home/jenkins/.buildout/eggs/plone.dexterity-2.5.1-py2.7.egg/plone/dexterity/fti.py", line 471, in ftiRemoved
    unregister(event.object)
  File "/home/jenkins/.buildout/eggs/plone.dexterity-2.5.1-py2.7.egg/plone/dexterity/fti.py", line 431, in unregister
    site_manager.unregisterUtility(provided=IDexterityFTI, name=portal_type)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.workflow.tests.test_exportimport.TestImport.test_remove_multiple

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.workflow/plone/app/workflow/tests/test_exportimport.py", line 307, in test_remove_multiple
    import_sharing(context)
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.workflow/plone/app/workflow/exportimport.py", line 136, in import_sharing
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.workflow/plone/app/workflow/exportimport.py", line 53, in _importNode
    self._initRole(child)
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.workflow/plone/app/workflow/exportimport.py", line 96, in _initRole
    self.context.unregisterUtility(utility, ISharingPageRole, name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


FAILED:  plone.app.workflow.tests.test_exportimport.TestImport.test_remove_one

Error Message:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

Stack Trace:
cannot create weak reference to 'Acquisition.ImplicitAcquisitionWrapper' object

  File "/usr/lib/python2.7/unittest/case.py", line 329, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.workflow/plone/app/workflow/tests/test_exportimport.py", line 273, in test_remove_one
    import_sharing(context)
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.workflow/plone/app/workflow/exportimport.py", line 136, in import_sharing
    importer.body = body
  File "/home/jenkins/.buildout/eggs/Products.GenericSetup-1.8.7-py2.7.egg/Products/GenericSetup/utils.py", line 512, in _importBody
    self._importNode(dom.documentElement)
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.workflow/plone/app/workflow/exportimport.py", line 53, in _importNode
    self._initRole(child)
  File "/home/jenkins/workspace/plone-5.1-python-2.7/src/plone.app.workflow/plone/app/workflow/exportimport.py", line 96, in _initRole
    self.context.unregisterUtility(utility, ISharingPageRole, name)
  File "/home/jenkins/.buildout/eggs/five.localsitemanager-2.0.5-py2.7.egg/five/localsitemanager/registry.py", line 320, in unregisterUtility
    component=component, provided=provided, name=name)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 267, in unregisterUtility
    _UtilityRegistrations.for_components(self).unregisterUtility(provided, name, component)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.4.0-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 104, in for_components
    cls._weakrefs_for_components[key] = weakref.ref(components, _cleanup)


More information about the Testbot mailing list