[Testbot] Plone 5.2 - Python 2.7 - Build # 989 - Still Failing!

jenkins at plone.org jenkins at plone.org
Fri May 18 10:30:48 UTC 2018


Plone 5.2 - Python 2.7 - Build # 989 - Still Failing:

Check console output at https://jenkins.plone.org/job/plone-5.2-python-2.7/989/ to view the results.

Changes:

[Alessandro Pisa] five.localsitemanager master is now version 3

[Alessandro Pisa] Try zope.globalrequest master (1.5)

[Alessandro Pisa] Try Products.BTreeFolder2 master (2.4dev)

[Alessandro Pisa] Try Products.ExternalEditor master (3.0dev)







Test Results:

5 tests failed.
FAILED:  .autoform.rst

Error Message:
Failed doctest test for autoform.rst

Stack Trace:
Failed doctest test for autoform.rst
  File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/tests/../autoform.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/tests/../autoform.rst", line 275, in autoform.rst
Failed example:
    test_form.update()
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 autoform.rst[45]>", line 1, in <module>
        test_form.update()
      File "/home/jenkins/.buildout/eggs/plone.z3cform-0.9.1-py2.7.egg/plone/z3cform/fieldsets/extensible.py", line 64, in update
        self.updateFields()
      File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/form.py", line 34, in updateFields
        self.updateFieldsFromSchemata()
      File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/base.py", line 67, in updateFieldsFromSchemata
        processFields(self, self.schema, permissionChecks=have_user)
      File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/utils.py", line 286, in processFields
        all_fields = _process_permissions(schema, form, all_fields)
      File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/utils.py", line 237, in _process_permissions
        form.context
      File "/home/jenkins/.buildout/eggs/AccessControl-4.0b4-py2.7-linux-x86_64.egg/AccessControl/ImplPython.py", line 646, in checkPermission
        return policy.checkPermission(permission, object, self._context)
      File "/home/jenkins/.buildout/eggs/AccessControl-4.0b4-py2.7-linux-x86_64.egg/AccessControl/ImplPython.py", line 523, in checkPermission
        return context.user.allowed(object, roles)
      File "/home/jenkins/.buildout/eggs/AccessControl-4.0b4-py2.7-linux-x86_64.egg/AccessControl/users.py", line 175, in allowed
        user_roles = self.getRoles()
      File "/home/jenkins/.buildout/eggs/AccessControl-4.0b4-py2.7-linux-x86_64.egg/AccessControl/users.py", line 274, in getRoles
        if self.name == 'Anonymous User':
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 785, in setstate
        raise ConnectionStateError(msg)
    ConnectionStateError: Shouldn't load state for OFS.userfolder.UserFolder 0x063707431247fda7 when the connection is closed
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/tests/../autoform.rst", line 276, in autoform.rst
Failed example:
    test_form.fields.keys()
Expected:
    ['IOtherSchema.four',
     'ISupplementarySchema.one',
     'two',
     'ISupplementarySchema.two',
     'one',
     'five',
     'IOtherSchema.six',
     'IOtherSchema.five']
Got:
    []
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/tests/../autoform.rst", line 295, in autoform.rst
Failed example:
    test_form.widgets['one'].mode
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 autoform.rst[47]>", line 1, in <module>
        test_form.widgets['one'].mode
    TypeError: 'NoneType' object has no attribute '__getitem__'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/tests/../autoform.rst", line 297, in autoform.rst
Failed example:
    test_form.widgets['two'].mode
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 autoform.rst[48]>", line 1, in <module>
        test_form.widgets['two'].mode
    TypeError: 'NoneType' object has no attribute '__getitem__'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/tests/../autoform.rst", line 303, in autoform.rst
Failed example:
    test_form.widgets['two']
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 autoform.rst[49]>", line 1, in <module>
        test_form.widgets['two']
    TypeError: 'NoneType' object has no attribute '__getitem__'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/tests/../autoform.rst", line 306, in autoform.rst
Failed example:
    test_form.widgets['IOtherSchema.five']
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 autoform.rst[50]>", line 1, in <module>
        test_form.widgets['IOtherSchema.five']
    TypeError: 'NoneType' object has no attribute '__getitem__'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/tests/../autoform.rst", line 312, in autoform.rst
Failed example:
    len(test_form.groups)
Expected:
    1
Got:
    0
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/tests/../autoform.rst", line 314, in autoform.rst
Failed example:
    test_form.groups[0].label
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 autoform.rst[52]>", line 1, in <module>
        test_form.groups[0].label
    IndexError: list index out of range
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/tests/../autoform.rst", line 316, in autoform.rst
Failed example:
    test_form.groups[0].description
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 autoform.rst[53]>", line 1, in <module>
        test_form.groups[0].description
    IndexError: list index out of range
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.autoform-1.7.5-py2.7.egg/plone/autoform/tests/../autoform.rst", line 318, in autoform.rst
Failed example:
    test_form.groups[0].fields.keys()
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 autoform.rst[54]>", line 1, in <module>
        test_form.groups[0].fields.keys()
    IndexError: list index out of range


  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.helpers.rst

Error Message:
Failed doctest test for helpers.rst

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

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 338, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 556, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 281, in testSetUp
        self['portal'] = portal = self['app'][PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 195, in helpers.rst
Failed example:
    repr(getSecurityManager()) != sm_repr
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 285, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 338, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 556, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.rst", line 389, in helpers.rst
Failed example:
    'dummy_plugin1' in PluggableAuthService.MultiPlugins
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 114, in setUp
        self.setUpDefaultContent(app)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 240, in setUpDefaultContent
        extension_ids=self.extensionProfiles,
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.CMFPlone/Products/CMFPlone/factory.py", line 146, in addPloneSite
        setup_tool.runAllImportStepsFromProfile('profile-%s' % profile_id)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.GenericSetup/Products/GenericSetup/tool.py", line 391, in runAllImportStepsFromProfile
        dependency_strategy=dependency_strategy)
       - __traceback_info__: profile-Products.CMFPlone:plone
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.GenericSetup/Products/GenericSetup/tool.py", line 1435, in _runImportStepsFromContext
        self._doRunHandler(post_handler)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.GenericSetup/Products/GenericSetup/tool.py", line 1282, in _doRunHandler
        return handler_function(self)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.CMFPlone/Products/CMFPlone/setuphandlers.py", line 170, in importFinalSteps
        "profile-Products.CMFPlone:dependencies")
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.GenericSetup/Products/GenericSetup/tool.py", line 391, in runAllImportStepsFromProfile
        dependency_strategy=dependency_strategy)
       - __traceback_info__: profile-Products.CMFPlone:dependencies
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.GenericSetup/Products/GenericSetup/tool.py", line 1426, in _runImportStepsFromContext
        message = self._doRunImportStep(step, context)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.GenericSetup/Products/GenericSetup/tool.py", line 1238, in _doRunImportStep
        return handler(context)
       - __traceback_info__: plonepas
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PlonePAS/src/Products/PlonePAS/setuphandlers.py", line 494, in setupPlonePAS
        installPAS(site)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PlonePAS/src/Products/PlonePAS/setuphandlers.py", line 482, in installPAS
        migrate_root_uf(portal)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PlonePAS/src/Products/PlonePAS/setuphandlers.py", line 301, in migrate_root_uf
        replace_acl_users(parent)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PluggableAuthService/Products/PluggableAuthService/Extensions/upgrade.py", line 188, in replace_acl_users
        _upgradeLocalRoleAssignments(self, RESPONSE)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PluggableAuthService/Products/PluggableAuthService/Extensions/upgrade.py", line 180, in _upgradeLocalRoleAssignments
        descend(self.acl_users, self)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PluggableAuthService/Products/PluggableAuthService/Extensions/upgrade.py", line 173, in descend
        descend(user_folder, o)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.PluggableAuthService/Products/PluggableAuthService/Extensions/upgrade.py", line 158, in descend
        '  Translated %s to %s\n' % (key, npid))
    TypeError: _write() takes exactly 3 arguments (2 given)
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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 1, in <module>
        with z2.zopeApp() as app:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 269, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 240, in addRequestContainer
        req = makeTestRequest(environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 228, in makeTestRequest
        setDefaultSkin(req)
      File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/skinnable.py", line 46, in setDefaultSkin
        adapters = zope.component.getSiteManager().adapters
    AttributeError: 'RequestContainer' object has no attribute 'adapters'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 256, in ploneSite
        with z2.zopeApp(db, connection, environ) as app:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 269, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 240, in addRequestContainer
        req = makeTestRequest(environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 228, in makeTestRequest
        setDefaultSkin(req)
      File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/skinnable.py", line 46, in setDefaultSkin
        adapters = zope.component.getSiteManager().adapters
    AttributeError: 'RequestContainer' object has no attribute 'adapters'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 256, in ploneSite
        with z2.zopeApp(db, connection, environ) as app:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 269, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 240, in addRequestContainer
        req = makeTestRequest(environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 228, in makeTestRequest
        setDefaultSkin(req)
      File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/skinnable.py", line 46, in setDefaultSkin
        adapters = zope.component.getSiteManager().adapters
    AttributeError: 'RequestContainer' object has no attribute 'adapters'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 256, in ploneSite
        with z2.zopeApp(db, connection, environ) as app:
      File "/usr/lib/python2.7/contextlib.py", line 17, in __enter__
        return self.gen.next()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 269, in zopeApp
        app = addRequestContainer(Zope2.app(connection), environ=environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 240, in addRequestContainer
        req = makeTestRequest(environ)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 228, in makeTestRequest
        setDefaultSkin(req)
      File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/skinnable.py", line 46, in setDefaultSkin
        adapters = zope.component.getSiteManager().adapters
    AttributeError: 'RequestContainer' object has no attribute 'adapters'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.z2.Startup in 0.003 seconds.
      Tear down plone.testing.zca.LayerCleanup in 0.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 338, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 556, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 281, in testSetUp
        self['portal'] = portal = self['app'][PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 142, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <PersistentComponents /plone>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 285, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 183, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <BaseGlobalComponents test-stack-2>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 338, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 556, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 279, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 903, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 227, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <PersistentComponents /plone>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 285, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 263, in layers.rst
Failed example:
    getSiteManager()
Expected:
    <BaseGlobalComponents test-stack-2>
Got:
    <BaseGlobalComponents base>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.001 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 338, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 556, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 300, in layers.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 279, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 903, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 285, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 338, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 556, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.rst", line 405, in layers.rst
Failed example:
    host
Expected:
    'localhost'
Got:
    'nohost'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 279, in testSetUp
        super(PloneTestLifecycle, self).testSetUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 903, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/layers.py", line 285, in testTearDown
        self.tearDownEnvironment(self['portal'])
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'portal'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/plone/app/testing/helpers.py", line 257, in ploneSite
        portal = app[PLONE_SITE_ID]
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'plone'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.testing/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/workspace/plone-5.2-python-2.7/src/plone.app.testing/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.2-python-2.7/src/plone.testing/src/plone/testing/z2.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 338, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 556, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 267, in zopeApp
        connection = db.open()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 781, in open
        self._cache_size_bytes,
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.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.2-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.4.0-py2.7.egg/ZODB/DB.py", line 781, in open
        self._cache_size_bytes,
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.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.2-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.2-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.2-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.2-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.2-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 0x7f48799ce980>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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.2-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.2-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.2-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.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 338, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 556, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 338, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 556, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 903, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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/Zope-4.0b4-py2.7.egg/OFS/Folder.py", line 48, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 338, in _setObject
        self._objects = self._objects + ({'id': id, 'meta_type': t},)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 830, in register
        self._register(obj)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 840, in _register
        self.transaction_manager.get().join(self)
    AttributeError: 'NoneType' object has no attribute 'get'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 942, in testTearDown
        app = self['app']
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 338, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 556, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 903, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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/Zope-4.0b4-py2.7.egg/OFS/Folder.py", line 48, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 338, in _setObject
        self._objects = self._objects + ({'id': id, 'meta_type': t},)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 830, in register
        self._register(obj)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 840, in _register
        self.transaction_manager.get().join(self)
    AttributeError: 'NoneType' object has no attribute 'get'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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-5.2.4-py2.7.egg/zope/testbrowser/browser.py", line 248, in open
        url = self._absoluteUrl(url)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py2.7.egg/zope/testbrowser/browser.py", line 528, in _absoluteUrl
        "can't fetch relative reference: not viewing any document")
    BrowserStateError: can't fetch relative reference: not viewing any document
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 795, in __getitem__
        raise KeyError(key)
    KeyError: 'folder1'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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-5.2.4-py2.7.egg/zope/testbrowser/browser.py", line 248, in open
        url = self._absoluteUrl(url)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py2.7.egg/zope/testbrowser/browser.py", line 528, in _absoluteUrl
        "can't fetch relative reference: not viewing any document")
    BrowserStateError: can't fetch relative reference: not viewing any document
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 338, in _setObject
        self._objects = self._objects + ({'id': id, 'meta_type': t},)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 830, in register
        self._register(obj)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 840, in _register
        self.transaction_manager.get().join(self)
    AttributeError: 'NoneType' object has no attribute 'get'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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-5.2.4-py2.7.egg/zope/testbrowser/browser.py", line 248, in open
        url = self._absoluteUrl(url)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py2.7.egg/zope/testbrowser/browser.py", line 528, in _absoluteUrl
        "can't fetch relative reference: not viewing any document")
    BrowserStateError: can't fetch relative reference: not viewing any document
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 942, in testTearDown
        app = self['app']
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 338, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 556, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 903, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 903, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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/Zope-4.0b4-py2.7.egg/OFS/Folder.py", line 48, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 338, in _setObject
        self._objects = self._objects + ({'id': id, 'meta_type': t},)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 830, in register
        self._register(obj)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 840, in _register
        self.transaction_manager.get().join(self)
    AttributeError: 'NoneType' object has no attribute 'get'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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.2-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.2-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.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 942, in testTearDown
        app = self['app']
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 942, in testTearDown
        app = self['app']
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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.2-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.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 765, in setup_layer
        setup_layer(options, base, setup_layers)
      File "/home/jenkins/.buildout/eggs/zope.testrunner-4.8.1-py2.7.egg/zope/testrunner/runner.py", line 770, in setup_layer
        layer.setUp()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 338, in setUp
        self.setUpDatabase()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 556, in setUpDatabase
        name='Startup')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 903, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 903, in testSetUp
        name='FunctionalTest')
      File "/home/jenkins/workspace/plone-5.2-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.4.0-py2.7.egg/ZODB/DB.py", line 486, in __init__
        with self.transaction(u'initial database creation') as conn:
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 1039, in __enter__
        self.conn = self.db.open(self.tm)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DB.py", line 793, in open
        result.open(transaction_manager)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 918, in open
        self.newTransaction(None, False)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 737, in newTransaction
        invalidated = self._storage.poll_invalidations()
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/mvccadapter.py", line 131, in poll_invalidations
        self._start = p64(u64(self._storage.lastTransaction()) + 1)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/DemoStorage.py", line 211, in lastTransaction
        t = self.base.lastTransaction()
    AttributeError: 'ValueDoc' object has no attribute 'lastTransaction'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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/Zope-4.0b4-py2.7.egg/OFS/Folder.py", line 48, in manage_addFolder
        self._setObject(id, ob)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/ObjectManager.py", line 338, in _setObject
        self._objects = self._objects + ({'id': id, 'meta_type': t},)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 830, in register
        self._register(obj)
      File "/home/jenkins/.buildout/eggs/ZODB-5.4.0-py2.7.egg/ZODB/Connection.py", line 840, in _register
        self.transaction_manager.get().join(self)
    AttributeError: 'NoneType' object has no attribute 'get'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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-4.0b4-py2.7-linux-x86_64.egg/AccessControl/requestmethod.py", line 79, in _curried
        return callable(*args, **kw)
      File "/home/jenkins/.buildout/eggs/Zope-4.0b4-py2.7.egg/OFS/userfolder.py", line 63, in userFolderAddUser
        return self._doAddUser(name, password, roles, domains, **kw)
      File "/home/jenkins/.buildout/eggs/AccessControl-4.0b4-py2.7-linux-x86_64.egg/AccessControl/userfolder.py", line 411, in _doAddUser
        self.data[name] = User(name, password, roles, domains)
      File "/home/jenkins/.buildout/eggs/persistent-4.2.4.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.4.0-py2.7.egg/ZODB/Connection.py", line 785, in setstate
        raise ConnectionStateError(msg)
    ConnectionStateError: Shouldn't load state for Persistence.mapping.PersistentMapping 0x083e2e027f8397c6 when the connection is closed
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-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.2-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.2-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.2-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.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 942, in testTearDown
        app = self['app']
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.2-python-2.7/src/plone.testing/src/plone/testing/z2.py", line 942, in testTearDown
        app = self['app']
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.testing/src/plone/testing/layer.py", line 30, in __getitem__
        raise KeyError(key)
    KeyError: 'app'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.002 seconds.
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-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.vocabularies.catalog.CatalogSource

Error Message:
Failed doctest test for plone.app.vocabularies.catalog.CatalogSource

Stack Trace:
Failed doctest test for plone.app.vocabularies.catalog.CatalogSource
  File "/home/jenkins/.buildout/eggs/plone.app.vocabularies-4.0.6-py2.7.egg/plone/app/vocabularies/catalog.py", line 637, in CatalogSource

----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.vocabularies-4.0.6-py2.7.egg/plone/app/vocabularies/catalog.py", line 671, in plone.app.vocabularies.catalog.CatalogSource
Failed example:
    'asdf' in source
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 plone.app.vocabularies.catalog.CatalogSource[6]>", line 1, in <module>
        'asdf' in source
      File "/home/jenkins/.buildout/eggs/plone.app.vocabularies-4.0.6-py2.7.egg/plone/app/vocabularies/catalog.py", line 703, in __contains__
        return bool(self.search_catalog(query))
      File "/home/jenkins/.buildout/eggs/plone.app.vocabularies-4.0.6-py2.7.egg/plone/app/vocabularies/catalog.py", line 708, in search_catalog
        catalog = getToolByName(getSite(), 'portal_catalog')
      File "<string>", line 15, in check_getToolByName
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.CMFPlone/Products/CMFPlone/patches/gtbn.py", line 23, in rewrap_in_request_container
        obj = aq_base(ob).__of__(obj)
    AttributeError: 'DummyContext' object has no attribute '__of__'
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/plone.app.vocabularies-4.0.6-py2.7.egg/plone/app/vocabularies/catalog.py", line 674, in plone.app.vocabularies.catalog.CatalogSource
Failed example:
    source.search_catalog({'foo': 'baz'})
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 plone.app.vocabularies.catalog.CatalogSource[7]>", line 1, in <module>
        source.search_catalog({'foo': 'baz'})
      File "/home/jenkins/.buildout/eggs/plone.app.vocabularies-4.0.6-py2.7.egg/plone/app/vocabularies/catalog.py", line 708, in search_catalog
        catalog = getToolByName(getSite(), 'portal_catalog')
      File "<string>", line 15, in check_getToolByName
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/Products.CMFPlone/Products/CMFPlone/patches/gtbn.py", line 23, in rewrap_in_request_container
        obj = aq_base(ob).__of__(obj)
    AttributeError: 'DummyContext' object has no attribute '__of__'


  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()))


More information about the Testbot mailing list