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

jenkins at plone.org jenkins at plone.org
Wed Jan 31 11:35:41 UTC 2018


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

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

Changes:

[Jens W. Klein] [fc] Repository: Products.CMFPlone







Test Results:

59 tests failed.
FAILED:  plone.app.z3cform.inline_validation.rst

Error Message:
Failed doctest test for inline_validation.rst

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

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/inline_validation.rst", line 91, in inline_validation.rst
Failed example:
    z3cform_validate_field(fname=u'form.widgets.age')
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 inline_validation.rst[32]>", line 1, in <module>
        z3cform_validate_field(fname=u'form.widgets.age')
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/inline_validation.py", line 33, in __call__
        data, errors = form.extractData()
      File "/home/jenkins/.buildout/eggs/z3c.form-3.6-py2.7.egg/z3c/form/form.py", line 148, in extractData
        data, errors = self.widgets.extract()
      File "/home/jenkins/.buildout/eggs/z3c.form-3.6-py2.7.egg/z3c/form/field.py", line 303, in extract
        value = interfaces.IDataConverter(widget).toFieldValue(raw)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/hookable.py", line 33, in __call__
        return self.__implementation(*args, **kw)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/hooks.py", line 119, in adapter_hook
        return siteinfo.adapter_hook(interface, object, name, default)
      File "/home/jenkins/.buildout/eggs/z3c.form-3.6-py2.7.egg/z3c/form/converter.py", line 86, in FieldWidgetDataConverter
        (widget.field, widget), interfaces.IDataConverter)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 123, in queryMultiAdapter
        return sitemanager.queryMultiAdapter(objects, interface, name, default)
      File "/home/jenkins/.buildout/eggs/zope.interface-4.4.3-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 359, in queryMultiAdapter
        objects, interface, name, default)
      File "/home/jenkins/.buildout/eggs/zope.interface-4.4.3-py2.7-linux-x86_64.egg/zope/interface/adapter.py", line 552, in queryMultiAdapter
        result = factory(*objects)
      File "/home/jenkins/.buildout/eggs/z3c.form-3.6-py2.7.egg/z3c/form/converter.py", line 108, in __init__
        locale = self.widget.request.locale
      File "/home/jenkins/.buildout/eggs/Zope-4.0b3-py2.7.egg/ZPublisher/HTTPRequest.py", line 1406, in __getattr__
        self.setupLocale()
      File "/home/jenkins/.buildout/eggs/Zope-4.0b3-py2.7.egg/ZPublisher/HTTPRequest.py", line 317, in setupLocale
        langs = envadapter.getPreferredLanguages()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
        return getLangPrefs(self.context)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
        accepted = handler.getAccepted(env, kind)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
        accepts.append((quality, l[0]))
    UnboundLocalError: local variable 'l' referenced before assignment
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/inline_validation.rst", line 98, in inline_validation.rst
Failed example:
    z3cform_validate_field(fname=u'form.widgets.age')
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 inline_validation.rst[37]>", line 1, in <module>
        z3cform_validate_field(fname=u'form.widgets.age')
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/inline_validation.py", line 33, in __call__
        data, errors = form.extractData()
      File "/home/jenkins/.buildout/eggs/z3c.form-3.6-py2.7.egg/z3c/form/form.py", line 148, in extractData
        data, errors = self.widgets.extract()
      File "/home/jenkins/.buildout/eggs/z3c.form-3.6-py2.7.egg/z3c/form/field.py", line 303, in extract
        value = interfaces.IDataConverter(widget).toFieldValue(raw)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/hookable.py", line 33, in __call__
        return self.__implementation(*args, **kw)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/hooks.py", line 119, in adapter_hook
        return siteinfo.adapter_hook(interface, object, name, default)
      File "/home/jenkins/.buildout/eggs/z3c.form-3.6-py2.7.egg/z3c/form/converter.py", line 86, in FieldWidgetDataConverter
        (widget.field, widget), interfaces.IDataConverter)
      File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py2.7.egg/zope/component/_api.py", line 123, in queryMultiAdapter
        return sitemanager.queryMultiAdapter(objects, interface, name, default)
      File "/home/jenkins/.buildout/eggs/zope.interface-4.4.3-py2.7-linux-x86_64.egg/zope/interface/registry.py", line 359, in queryMultiAdapter
        objects, interface, name, default)
      File "/home/jenkins/.buildout/eggs/zope.interface-4.4.3-py2.7-linux-x86_64.egg/zope/interface/adapter.py", line 552, in queryMultiAdapter
        result = factory(*objects)
      File "/home/jenkins/.buildout/eggs/z3c.form-3.6-py2.7.egg/z3c/form/converter.py", line 108, in __init__
        locale = self.widget.request.locale
      File "/home/jenkins/.buildout/eggs/Zope-4.0b3-py2.7.egg/ZPublisher/HTTPRequest.py", line 1406, in __getattr__
        self.setupLocale()
      File "/home/jenkins/.buildout/eggs/Zope-4.0b3-py2.7.egg/ZPublisher/HTTPRequest.py", line 317, in setupLocale
        langs = envadapter.getPreferredLanguages()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
        return getLangPrefs(self.context)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
        accepted = handler.getAccepted(env, kind)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
        accepts.append((quality, l[0]))
    UnboundLocalError: local variable 'l' referenced before assignment
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/inline_validation.rst", line 125, in inline_validation.rst
Failed example:
    z3cform_validate_field(fname=u'form.widgets.name', fset="0")
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 inline_validation.rst[45]>", line 1, in <module>
        z3cform_validate_field(fname=u'form.widgets.name', fset="0")
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/inline_validation.py", line 63, in __call__
        validationError = translate(validationError, context=self.request)
      File "/home/jenkins/.buildout/eggs/zope.i18n-4.3.1-py2.7.egg/zope/i18n/__init__.py", line 184, in translate
        return util.translate(msgid, mapping, context, target_language, default)
      File "/home/jenkins/.buildout/eggs/zope.i18n-4.3.1-py2.7.egg/zope/i18n/translationdomain.py", line 78, in translate
        target_language = negotiator.getLanguage(langs, context)
      File "/home/jenkins/.buildout/eggs/zope.i18n-4.3.1-py2.7.egg/zope/i18n/negotiator.py", line 40, in getLanguage
        userlangs = envadapter.getPreferredLanguages()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
        return getLangPrefs(self.context)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
        accepted = handler.getAccepted(env, kind)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
        accepts.append((quality, l[0]))
    UnboundLocalError: local variable 'l' referenced before assignment
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/inline_validation.rst", line 127, in inline_validation.rst
Failed example:
    z3cform_validate_field(fname=u'form.widgets.name', fset="mygroup")
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 inline_validation.rst[46]>", line 1, in <module>
        z3cform_validate_field(fname=u'form.widgets.name', fset="mygroup")
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/inline_validation.py", line 63, in __call__
        validationError = translate(validationError, context=self.request)
      File "/home/jenkins/.buildout/eggs/zope.i18n-4.3.1-py2.7.egg/zope/i18n/__init__.py", line 184, in translate
        return util.translate(msgid, mapping, context, target_language, default)
      File "/home/jenkins/.buildout/eggs/zope.i18n-4.3.1-py2.7.egg/zope/i18n/translationdomain.py", line 78, in translate
        target_language = negotiator.getLanguage(langs, context)
      File "/home/jenkins/.buildout/eggs/zope.i18n-4.3.1-py2.7.egg/zope/i18n/negotiator.py", line 40, in getLanguage
        userlangs = envadapter.getPreferredLanguages()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
        return getLangPrefs(self.context)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
        accepted = handler.getAccepted(env, kind)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
        accepts.append((quality, l[0]))
    UnboundLocalError: local variable 'l' referenced before assignment
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/inline_validation.rst", line 156, in inline_validation.rst
Failed example:
    z3cform_validate_field(fname=u'form.widgets.name', fset="0")
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 inline_validation.rst[57]>", line 1, in <module>
        z3cform_validate_field(fname=u'form.widgets.name', fset="0")
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/inline_validation.py", line 63, in __call__
        validationError = translate(validationError, context=self.request)
      File "/home/jenkins/.buildout/eggs/zope.i18n-4.3.1-py2.7.egg/zope/i18n/__init__.py", line 184, in translate
        return util.translate(msgid, mapping, context, target_language, default)
      File "/home/jenkins/.buildout/eggs/zope.i18n-4.3.1-py2.7.egg/zope/i18n/translationdomain.py", line 78, in translate
        target_language = negotiator.getLanguage(langs, context)
      File "/home/jenkins/.buildout/eggs/zope.i18n-4.3.1-py2.7.egg/zope/i18n/negotiator.py", line 40, in getLanguage
        userlangs = envadapter.getPreferredLanguages()
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
        return getLangPrefs(self.context)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
        accepted = handler.getAccepted(env, kind)
      File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
        accepts.append((quality, l[0]))
    UnboundLocalError: local variable 'l' referenced before assignment


  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.content.tests.test_folder.ContextInfoTest.testStateChange

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.PropertiesArchetypesTest.testContributors

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.PropertiesArchetypesTest.testCreators

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.PropertiesArchetypesTest.testEffective

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.PropertiesArchetypesTest.testExcludeFromNav

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.PropertiesArchetypesTest.testExpires

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.PropertiesArchetypesTest.testRights

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.PropertiesDXTest.testContributors

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 64, in setUp
    super(DXBaseTest, self).setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.PropertiesDXTest.testCreators

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 64, in setUp
    super(DXBaseTest, self).setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.PropertiesDXTest.testEffective

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 64, in setUp
    super(DXBaseTest, self).setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.PropertiesDXTest.testExpires

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 64, in setUp
    super(DXBaseTest, self).setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.PropertiesDXTest.testRights

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 64, in setUp
    super(DXBaseTest, self).setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.PropertiesDXTest.testSetDexterityExcludeFromNav

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 64, in setUp
    super(DXBaseTest, self).setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.RenameTest.test_default_page_updated_on_rename_objects

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.RenameTest.test_folder_rename_objects

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_folder.WorkflowTest.testStateChange

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_folder.py", line 43, in setUp
    'folder': '/'
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testPermissionCheckerAllowed

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testPermissionCheckerDisallowed

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testPermissionCheckerShortCircuit

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testPermissionCheckerUnknownField

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testPermissionCheckerUnknownVocab

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testQueryStringConfiguration

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testSource

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testSourceCollectionField

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testSourcePermissionDenied

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testSourceTextQuery

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testUntranslatableMetadata

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testVocabularyBatching

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testVocabularyCatalogResults

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testVocabularyCatalogUnsafeMetadataAllowed

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testVocabularyCatalogUnsafeMetadataDisallowed

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testVocabularyEncoding

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testVocabularyFunctionQueryString

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testVocabularyMissing

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testVocabularyNoResults

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testVocabularyQueryString

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testVocabularyUnauthorized

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.content.tests.test_widgets.BrowserTest.testVocabularyUsers

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 82, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.dexterity.tests.test_permissions.DexterityVocabularyPermissionTests.test_vocabulary_field_allowed

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.dexterity/plone/app/dexterity/tests/test_permissions.py", line 86, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.dexterity.tests.test_permissions.DexterityVocabularyPermissionTests.test_vocabulary_field_allowed_from_add_form

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.dexterity/plone/app/dexterity/tests/test_permissions.py", line 86, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.dexterity.tests.test_permissions.DexterityVocabularyPermissionTests.test_vocabulary_field_allowed_from_add_view

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.dexterity/plone/app/dexterity/tests/test_permissions.py", line 86, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.dexterity.tests.test_permissions.DexterityVocabularyPermissionTests.test_vocabulary_field_default_permission

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.dexterity/plone/app/dexterity/tests/test_permissions.py", line 86, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.dexterity.tests.test_permissions.DexterityVocabularyPermissionTests.test_vocabulary_field_default_permission_wrong_vocab

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.dexterity/plone/app/dexterity/tests/test_permissions.py", line 86, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.dexterity.tests.test_permissions.DexterityVocabularyPermissionTests.test_vocabulary_field_disallowed

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.dexterity/plone/app/dexterity/tests/test_permissions.py", line 86, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.dexterity.tests.test_permissions.DexterityVocabularyPermissionTests.test_vocabulary_field_wrong_vocabulary_disallowed

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.dexterity/plone/app/dexterity/tests/test_permissions.py", line 86, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.dexterity.tests.test_permissions.DexterityVocabularyPermissionTests.test_vocabulary_missing_field

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.dexterity/plone/app/dexterity/tests/test_permissions.py", line 86, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.dexterity.tests.test_permissions.DexterityVocabularyPermissionTests.test_vocabulary_on_adapted_widget

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.dexterity/plone/app/dexterity/tests/test_permissions.py", line 86, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.dexterity.tests.test_permissions.DexterityVocabularyPermissionTests.test_vocabulary_on_widget

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.dexterity/plone/app/dexterity/tests/test_permissions.py", line 86, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.z3cform.tests.test_widgets.AjaxSelectWidgetIntegrationTests.test_keywords_can_add

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/tests/test_widgets.py", line 969, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.z3cform.tests.test_widgets.AjaxSelectWidgetIntegrationTests.test_keywords_cannot_add

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/tests/test_widgets.py", line 969, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.z3cform.tests.test_widgets.LinkWidgetIntegrationTests.test_link_widget__data_converter

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/tests/test_widgets.py", line 1469, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.z3cform.tests.test_widgets.LinkWidgetIntegrationTests.test_link_widget__extract_email

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/tests/test_widgets.py", line 1469, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.z3cform.tests.test_widgets.LinkWidgetIntegrationTests.test_link_widget__extract_email_including_mailto

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/tests/test_widgets.py", line 1469, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.z3cform.tests.test_widgets.LinkWidgetIntegrationTests.test_link_widget__extract_external

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/tests/test_widgets.py", line 1469, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.z3cform.tests.test_widgets.LinkWidgetIntegrationTests.test_link_widget__extract_internal

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/tests/test_widgets.py", line 1469, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.z3cform.tests.test_widgets.LinkWidgetIntegrationTests.test_link_widget__pattern_options

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/tests/test_widgets.py", line 1469, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.z3cform.tests.test_widgets.RelatedItemsWidgetIntegrationTests.test_related_items_widget

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/tests/test_widgets.py", line 1049, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


FAILED:  plone.app.z3cform.tests.test_widgets.RelatedItemsWidgetIntegrationTests.test_related_items_widget_nav_root

Error Message:
local variable 'l' referenced before assignment

Stack Trace:
local variable 'l' referenced before assignment

  File "/usr/lib/python2.7/unittest/case.py", line 320, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.app.z3cform/plone/app/z3cform/tests/test_widgets.py", line 1049, in setUp
    self.request = TestRequest(environ={'HTTP_ACCEPT_LANGUAGE': 'en'})
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 688, in __init__
    super(TestRequest, self).__init__(body_instream, _testEnv)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/browser.py", line 242, in __init__
    super(BrowserRequest, self).__init__(body_instream, environ, response)
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 337, in __init__
    self.setupLocale()
  File "/home/jenkins/.buildout/eggs/zope.publisher-4.3.2-py2.7.egg/zope/publisher/http.py", line 345, in setupLocale
    langs = envadapter.getPreferredLanguages()
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 260, in getPreferredLanguages
    return getLangPrefs(self.context)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 40, in getLangPrefs
    accepted = handler.getAccepted(env, kind)
  File "/home/jenkins/workspace/plone-5.2-python-2.7/src/plone.i18n/plone/i18n/negotiate/ptsnegotiator.py", line 145, in getAccepted
    accepts.append((quality, l[0]))


More information about the Testbot mailing list