[Testbot] Plone 5.2 - Python 3.6 - Build # 12 - Still Failing!

jenkins at plone.org jenkins at plone.org
Wed Oct 17 11:29:47 UTC 2018


Plone 5.2 - Python 3.6 - Build # 12 - Still Failing:

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

Changes:

No changes






Test Results:

246 tests failed.
FAILED:  Products.CMFDiffTool.tests.test_binarydiff.BinaryDiffTestCase.test_should_detect_different_data

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFDiffTool/Products/CMFDiffTool/tests/test_binarydiff.py", line 39, in test_should_detect_different_data
    file=NamedFile(data='contents', filename=u'f.txt'),
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  Products.CMFDiffTool.tests.test_binarydiff.BinaryDiffTestCase.test_should_detect_different_filename

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFDiffTool/Products/CMFDiffTool/tests/test_binarydiff.py", line 19, in test_should_detect_different_filename
    file=NamedFile(data='contents', filename=u'blah.txt'),
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  Products.CMFDiffTool.tests.test_binarydiff.BinaryDiffTestCase.test_should_detect_same_data_and_filename

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFDiffTool/Products/CMFDiffTool/tests/test_binarydiff.py", line 59, in test_should_detect_same_data_and_filename
    file=NamedFile(data='contents', filename=u'f.txt'),
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  Products.CMFDiffTool.tests.test_dexteritydiff.DexterityDiffTestCase.test_should_provide_inline_diff_for_file_list_field

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFDiffTool/Products/CMFDiffTool/tests/test_dexteritydiff.py", line 81, in test_should_provide_inline_diff_for_file_list_field
    files=[NamedFile(data='data', filename=u'a.txt')],
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  Products.CMFDiffTool.tests.test_filelistdiff.AsTextDiffTestCase.test_should_diff_file_lists_correctly

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFDiffTool/Products/CMFDiffTool/tests/test_filelistdiff.py", line 22, in test_should_diff_file_lists_correctly
    False,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFDiffTool/Products/CMFDiffTool/tests/test_filelistdiff.py", line 65, in _test_diff_files
    DummyType(files1), DummyType(files2), 'files')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFDiffTool/Products/CMFDiffTool/tests/test_filelistdiff.py", line 13, in __init__
    NamedFile(data=d, filename=fn) for (d, fn) in files]
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFDiffTool/Products/CMFDiffTool/tests/test_filelistdiff.py", line 13, in <listcomp>
    NamedFile(data=d, filename=fn) for (d, fn) in files]
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  Products.CMFEditions.tests.test_ContentTypes.TestPloneContents.testFile

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFEditions/Products/CMFEditions/tests/test_ContentTypes.py", line 143, in testFile
    content.file = NamedBlobFile(file1, u'img1.png', u'image/png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFEditions.tests.test_ContentTypes.TestPloneContents.testImage

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFEditions/Products/CMFEditions/tests/test_ContentTypes.py", line 111, in testImage
    content.image = NamedBlobImage(img1, u'img1.png', u'image/png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.controlpanel.tests.test_controlpanel_browser_site.SiteControlPanelFunctionalTest.test_site_logo_is_stored_in_registry

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/controlpanel/tests/test_controlpanel_browser_site.py", line 103, in test_site_logo_is_stored_in_registry
    self.browser.getControl('Save').click()
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
    self.browser._clickSubmit(self._form, self._control)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 286, in _processRequest
    resp = self.testapp.get(url, **reqargs)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 63, in __call__
    self.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 47, in update
    self.form_instance.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/fieldsets/extensible.py", line 65, in update
    super(ExtensibleForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/patch.py", line 30, in GroupForm_update
    _original_GroupForm_update(self)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 132, in update
    self.updateWidgets()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/controlpanel/browser/site.py", line 22, in updateWidgets
    super(SiteControlPanelForm, self).updateWidgets()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/form.py", line 136, in updateWidgets
    self.widgets.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/field.py", line 277, in update
    widget.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/text.py", line 36, in update
    super(TextWidget, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/widget.py", line 171, in update
    super(HTMLFormElement, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/patches/z3c_form.py", line 47, in _wrapped
    return update(self)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/widget.py", line 132, in update
    self.value = converter.toWidgetValue(value)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 99, in toWidgetValue
    value = NamedImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testBrowserDefaultMixinFileDumpsContent

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testBrowserDefaultMixinFileViewMethodGetsTemplate

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testBrowserDefaultMixinFolderDefaultPage

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testBrowserDefaultMixinFolderGlobalDefaultPage

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testBrowserDefaultMixinFolderIndexHtml

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testBrowserDefaultMixinWithoutFtiGivesSensibleError

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testCallDocumentGivesTemplate

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testCallFileGivesTemplate

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testCallFolderWithDefaultPageGivesTemplate

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testCallFolderWithoutDefaultPageGivesTemplate

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testCallWithBrowserDefaultMixinGetsSelectedLayout

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testDefaultPageSetting

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testFolderDefaultPageSameAsSelfWithPageMissing

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testIndexHtmlNotAcquired

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testIndexHtmlReplaceableWrapper

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testReselectingDefaultLayoutAfterDefaultPageWorks

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testBrowserDefault.TestPloneToolBrowserDefault.testViewMethodWithBrowserDefaultMixinGetsSelectedLayout

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testBrowserDefault.py", line 50, in setUp
    self.portal.file.file = NamedBlobFile('foo', 'text/plain', u'foo.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testSyndication.TestSyndicationFeedAdapter.test_has_enclosure

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testSyndication.py", line 163, in afterSetUp
    self.file.file = NamedBlobFile(data='lorem', filename=u'string.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testSyndication.TestSyndicationFeedAdapter.test_items

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testSyndication.py", line 163, in afterSetUp
    self.file.file = NamedBlobFile(data='lorem', filename=u'string.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testSyndication.TestSyndicationFeedAdapter.test_link_on_default_page

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testSyndication.py", line 163, in afterSetUp
    self.file.file = NamedBlobFile(data='lorem', filename=u'string.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testSyndication.TestSyndicationFeedAdapter.test_link_on_document

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testSyndication.py", line 163, in afterSetUp
    self.file.file = NamedBlobFile(data='lorem', filename=u'string.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testSyndication.TestSyndicationFeedAdapter.test_link_on_file

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testSyndication.py", line 163, in afterSetUp
    self.file.file = NamedBlobFile(data='lorem', filename=u'string.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testSyndication.TestSyndicationFeedAdapter.test_link_on_folder

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testSyndication.py", line 163, in afterSetUp
    self.file.file = NamedBlobFile(data='lorem', filename=u'string.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.testSyndication.TestSyndicationFeedAdapter.test_max_items

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/testSyndication.py", line 163, in afterSetUp
    self.file.file = NamedBlobFile(data='lorem', filename=u'string.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  Products.CMFPlone.tests.test_sitelogo.SiteLogoFunctionalTest.test_sitelogo_view

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/test_sitelogo.py", line 31, in test_sitelogo_view
    view = self.portal.restrictedTraverse('@@site-logo')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/OFS/Traversable.py", line 366, in restrictedTraverse
    return self.unrestrictedTraverse(path, default, restricted=True)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/OFS/Traversable.py", line 349, in unrestrictedTraverse
    raise e
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/OFS/Traversable.py", line 236, in unrestrictedTraverse
    ns, nm, obj, aq_acquire(self, 'REQUEST'))
  File "/home/jenkins/.buildout/eggs/zope.traversing-4.2.0-py3.6.egg/zope/traversing/namespace.py", line 116, in namespaceLookup
    return traverser.traverse(name, ())
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/earlypatches/security.py", line 15, in traverse
    return old_traverse(self, name, ignored)
  File "/home/jenkins/.buildout/eggs/zope.traversing-4.2.0-py3.6.egg/zope/traversing/namespace.py", line 337, in traverse
    name=name)
  File "/home/jenkins/.buildout/eggs/zope.component-4.4.1-py3.6.egg/zope/component/_api.py", line 123, in queryMultiAdapter
    return sitemanager.queryMultiAdapter(objects, interface, name, default)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.5.0-py3.6-linux-x86_64.egg/zope/interface/registry.py", line 359, in queryMultiAdapter
    objects, interface, name, default)
  File "/home/jenkins/.buildout/eggs/zope.interface-4.5.0-py3.6-linux-x86_64.egg/zope/interface/adapter.py", line 552, in queryMultiAdapter
    result = factory(*objects)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/browser/sitelogo.py", line 21, in __init__
    data = NamedImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  Products.CMFPlone.tests.csrf.txt

Error Message:
Failed doctest test for csrf.txt

Stack Trace:
Failed doctest test for csrf.txt
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/csrf.txt", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/tests/csrf.txt", line 416, in csrf.txt
Failed example:
    browser.getControl(name='_authenticator', index=0).value = 'invalid!'
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest csrf.txt[186]>", line 1, in <module>
        browser.getControl(name='_authenticator', index=0).value = 'invalid!'
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 391, in getControl
        available)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1331, in disambiguate
        raise LookupError(msg)
    LookupError: name '_authenticator'
    available items:
      <SelectControl(path=[*, ambiguous])>
      <TextControl(SearchableText=)>
      <SubmitControl(<None>=Search)>
      <SelectControl(form.widgets.enable_self_reg:list=[*, ambiguous])>
      <HiddenControl(form.widgets.enable_self_reg-empty-marker=1) (readonly)>
      <SelectControl(form.widgets.enable_user_pwd_choice:list=[*, ambiguous])>
      <HiddenControl(form.widgets.enable_user_pwd_choice-empty-marker=1) (readonly)>
      <SelectControl(form.widgets.enable_user_folders:list=[*, ambiguous])>
      <HiddenControl(form.widgets.enable_user_folders-empty-marker=1) (readonly)>
      <SelectControl(form.widgets.allow_anon_views_about:list=[*, ambiguous])>
      <HiddenControl(form.widgets.allow_anon_views_about-empty-marker=1) (readonly)>
      <SelectControl(form.widgets.use_email_as_login:list=[*, ambiguous])>
      <HiddenControl(form.widgets.use_email_as_login-empty-marker=1) (readonly)>
      <SelectControl(form.widgets.use_uuid_as_userid:list=[*, ambiguous])>
      <HiddenControl(form.widgets.use_uuid_as_userid-empty-marker=1) (readonly)>
      <SubmitControl(form.buttons.save=Save)>
      <SubmitControl(form.buttons.cancel=Cancel)>


  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/srv/python3.6/lib/python3.6/doctest.py", line 2199, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.app.dexterity.tests.filename.txt

Error Message:
Failed doctest test for filename.txt

Stack Trace:
Failed doctest test for filename.txt
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.dexterity/plone/app/dexterity/tests/filename.txt", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.dexterity/plone/app/dexterity/tests/filename.txt", line 43, in filename.txt
Failed example:
    browser.getControl('Save').click()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest filename.txt[24]>", line 1, in <module>
        browser.getControl('Save').click()
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
        self.browser._clickSubmit(self._form, self._control)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
        self._processRequest(url, make_request)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 289, in _processRequest
        self._checkStatus()
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 297, in _checkStatus
        raise HTTPError(self.url, code, msg, [], None)
    urllib.error.HTTPError: HTTP Error 500: Internal Server Error
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.dexterity/plone/app/dexterity/tests/filename.txt", line 44, in filename.txt
Failed example:
    browser.url
Expected:
    'http://nohost/plone/foo.txt/view'
Got:
    'http://nohost/plone/++add++file_type'


  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/srv/python3.6/lib/python3.6/doctest.py", line 2199, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.app.users.tests.flexible_user_registration.rst

Error Message:
Failed doctest test for flexible_user_registration.rst

Stack Trace:
Failed doctest test for flexible_user_registration.rst
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.users/plone/app/users/tests/flexible_user_registration.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.users/plone/app/users/tests/flexible_user_registration.rst", line 181, in flexible_user_registration.rst
Failed example:
    browser.getControl('Register').click()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest flexible_user_registration.rst[91]>", line 1, in <module>
        browser.getControl('Register').click()
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
        self.browser._clickSubmit(self._form, self._control)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
        self._processRequest(url, make_request)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
        resp = make_request(reqargs)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 270, in make_request
        form, control.name, index, coord=coord, **args)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 314, in _submit
        params=fields, **args)
      File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/response.py", line 297, in goto
        return method(href, **args)
      File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 379, in post
        content_type=content_type)
      File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 755, in _gen_request
        expect_errors=expect_errors)
      File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
        expect_errors)
      File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
        res = req.get_response(app, catch_exc_info=True)
      File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
        application, catch_exc_info=True)
      File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
        app_iter = application(self.environ, start_response)
      File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
        iterator = application(environ, start_response_wrapper)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
        return func(*args, **kw)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
        wsgi_result = publish(environ, start_response)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
        response = _publish(request, new_mod_info)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
        bind=1)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
        return debug(object, args, context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
        return obj(*args)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/form.py", line 233, in __call__
        self.update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/fieldsets/extensible.py", line 65, in update
        super(ExtensibleForm, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/patch.py", line 30, in GroupForm_update
        _original_GroupForm_update(self)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 145, in update
        self.actions.execute()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.z3cform/plone/app/z3cform/csrf.py", line 22, in execute
        super(AuthenticatedButtonActions, self).execute()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/action.py", line 98, in execute
        result = handler()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 315, in __call__
        return handler(self.form, self.action)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 170, in __call__
        return self.func(form, action)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.users/plone/app/users/browser/register.py", line 391, in action_join
        data, errors = self.extractData()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 98, in extractData
        data, errors = super(GroupForm, self).extractData(setErrors=setErrors)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/form.py", line 148, in extractData
        data, errors = self.widgets.extract()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/field.py", line 303, in extract
        value = interfaces.IDataConverter(widget).toFieldValue(raw)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 47, in toFieldValue
        return self.field._type(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
        filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
        f.write('')
    TypeError: a bytes-like object is required, not 'str'


  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/srv/python3.6/lib/python3.6/doctest.py", line 2199, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.formwidget.namedfile.widget.rst

Error Message:
Failed doctest test for widget.rst

Stack Trace:
Failed doctest test for widget.rst
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 266, in widget.rst
Failed example:
    file_widget.value = NamedFile(data=b'My file data',
                                  filename=u'data_深.txt')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[94]>", line 2, in <module>
        filename=u'data_深.txt')
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 272, in widget.rst
Failed example:
    print(file_widget.render())
Expected:
    <... id="widget.id.file" class="named-file-widget required namedfile-field">...
    <a href="http://127.0.0.1/content1/++widget++widget.name.file/@@download/data_%E6%B7%B1.txt" >data_深.txt</a>...
    <input type="radio"... id="widget.id.file-nochange"...
    <input type="radio"... id="widget.id.file-replace"...
    <input type="file"... id="widget.id.file-input"...
Got:
    <span id="widget.id.file" class="named-file-widget required namedfile-field">
    <BLANKLINE>
    <BLANKLINE>
    <BLANKLINE>
    <BLANKLINE>
            <input type="file" id="widget.id.file-input" name="widget.name.file" />
    <BLANKLINE>
    <BLANKLINE>
    </span>
    <BLANKLINE>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 305, in widget.rst
Failed example:
    content.image_field = NamedImage(data=image_data, filename=u'faux.jpg')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[108]>", line 1, in <module>
        content.image_field = NamedImage(data=image_data, filename=u'faux.jpg')
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
        self._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
        super(NamedImage, self)._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 322, in widget.rst
Failed example:
    print(image_widget.thumb_tag)
Expected:
    <img src="http://127.0.0.1/content1/@@images/...jpeg" alt="A content item" title="A content item" height="51" width="128" />
Got:
    <BLANKLINE>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 324, in widget.rst
Failed example:
    print(image_widget.render())
Expected:
    <... id="widget.id.image" class="named-image-widget required namedimage-field">...
    <img src="http://127.0.0.1/content1/@@images/...jpeg" alt="A content item" title="A content item" height="51" width="128" />...
    <a href="http://127.0.0.1/content1/++widget++widget.name.image/@@download/faux2.jpg" >faux2.jpg</a>...
    <input type="radio"... id="widget.id.image-nochange"...
    <input type="radio"... id="widget.id.image-replace"...
    <input type="file"... id="widget.id.image-input"...
Got:
    <span id="widget.id.image" class="named-image-widget required namedimage-field">
    <BLANKLINE>
          <input type="hidden" name="widget.name.image.file_upload_id" value="910cd8e525e44627b3f97aa192e40016"/>
          <span>
            Image already uploaded:
            faux2.jpg
          </span>
    <BLANKLINE>
        <span>
          <a href="http://127.0.0.1/content1/++widget++widget.name.image/@@download/faux2.jpg">
    <BLANKLINE>
          </a><br />
            <img src="http://nohost/plone/++resource++mimetype.icons/image.png" alt="JPEG image" title="faux2.jpg"/>
            <a href="http://127.0.0.1/content1/++widget++widget.name.image/@@download/faux2.jpg" >faux2.jpg</a>
            <span class="discreet"> —
                JPEG image,
                0 KB
            </span>
        </span>
        <div style="padding-top: 1em;">
            <input type="radio" value="nochange" class="noborder" name="widget.name.image.action" id="widget.id.image-nochange" onclick="document.getElementById('widget.id.image-input').disabled=true" checked="checked" />
            <label for="widget.id.image-nochange">Keep existing image</label>
    <BLANKLINE>
            <br />
            <input type="radio" value="replace" class="noborder" name="widget.name.image.action" id="widget.id.image-replace" onclick="document.getElementById('widget.id.image-input').disabled=false" />
            <label for="widget.id.image-replace">Replace with new image</label>
        </div>
        <div style="padding-left: 1.5em; padding-top: 0.5em;">
            <input type="file" id="widget.id.image-input" name="widget.name.image" />
            <script type="text/javascript">document.getElementById('widget.id.image-input').disabled=true;</script>
        </div>
    </span>
    <BLANKLINE>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 335, in widget.rst
Failed example:
    content.file_field = NamedFile(data=b'My file data', filename=u'data.txt')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[117]>", line 1, in <module>
        content.file_field = NamedFile(data=b'My file data', filename=u'data.txt')
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 336, in widget.rst
Failed example:
    content.image_field = NamedImage(data=image_data, filename=u'faux.jpg')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[118]>", line 1, in <module>
        content.image_field = NamedImage(data=image_data, filename=u'faux.jpg')
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
        self._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
        super(NamedImage, self)._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 342, in widget.rst
Failed example:
    file_widget.update()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[122]>", line 1, in <module>
        file_widget.update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/text.py", line 36, in update
        super(TextWidget, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/widget.py", line 171, in update
        super(HTMLFormElement, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/patches/z3c_form.py", line 47, in _wrapped
        return update(self)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/widget.py", line 88, in update
        widget_value = self.extract()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 294, in extract
        data = _make_namedfile(data, self.field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 77, in _make_namedfile
        value = NamedFile(data=data, filename=filename)
    UnboundLocalError: local variable 'data' referenced before assignment
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 343, in widget.rst
Failed example:
    file_widget.extract() is content.file_field
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[123]>", line 1, in <module>
        file_widget.extract() is content.file_field
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 294, in extract
        data = _make_namedfile(data, self.field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 77, in _make_namedfile
        value = NamedFile(data=data, filename=filename)
    UnboundLocalError: local variable 'data' referenced before assignment
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 350, in widget.rst
Failed example:
    image_widget.update()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[127]>", line 1, in <module>
        image_widget.update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/text.py", line 36, in update
        super(TextWidget, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/widget.py", line 171, in update
        super(HTMLFormElement, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/patches/z3c_form.py", line 47, in _wrapped
        return update(self)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/widget.py", line 88, in update
        widget_value = self.extract()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 294, in extract
        data = _make_namedfile(data, self.field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 73, in _make_namedfile
        value = NamedImage(data=data, filename=filename)
    UnboundLocalError: local variable 'data' referenced before assignment
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 351, in widget.rst
Failed example:
    image_widget.extract() is content.image_field
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[128]>", line 1, in <module>
        image_widget.extract() is content.image_field
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 294, in extract
        data = _make_namedfile(data, self.field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 73, in _make_namedfile
        value = NamedImage(data=data, filename=filename)
    UnboundLocalError: local variable 'data' referenced before assignment
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 364, in widget.rst
Failed example:
    view() == image_data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[132]>", line 1, in <module>
        view() == image_data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 393, in __call__
        file_ = _make_namedfile(file_, field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 73, in _make_namedfile
        value = NamedImage(data=data, filename=filename)
    UnboundLocalError: local variable 'data' referenced before assignment
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 366, in widget.rst
Failed example:
    request.response.getHeader('Content-Disposition')
Expected:
    "attachment; filename*=UTF-8''faux.jpg"
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 371, in widget.rst
Failed example:
    view()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[136]>", line 1, in <module>
        view()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 393, in __call__
        file_ = _make_namedfile(file_, field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 77, in _make_namedfile
        value = NamedFile(data=data, filename=filename)
    UnboundLocalError: local variable 'data' referenced before assignment
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 373, in widget.rst
Failed example:
    request.response.getHeader('Content-Disposition')
Expected:
    "attachment; filename*=UTF-8''data.txt"
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 382, in widget.rst
Failed example:
    view()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[141]>", line 1, in <module>
        view()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 393, in __call__
        file_ = _make_namedfile(file_, field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 77, in _make_namedfile
        value = NamedFile(data=data, filename=filename)
    UnboundLocalError: local variable 'data' referenced before assignment
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 384, in widget.rst
Failed example:
    request.response.getHeader('Content-Disposition')
Expected:
    "attachment; filename*=UTF-8''daisy.txt"
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 435, in widget.rst
Failed example:
    file_converter.toFieldValue('some file content')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[159]>", line 1, in <module>
        file_converter.toFieldValue('some file content')
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 54, in toFieldValue
        return self.field._type(data=value)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 438, in widget.rst
Failed example:
    image_converter.toFieldValue(b'random data')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[160]>", line 1, in <module>
        image_converter.toFieldValue(b'random data')
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 54, in toFieldValue
        return self.field._type(data=value)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
        self._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
        super(NamedImage, self)._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 451, in widget.rst
Failed example:
    file_obj = file_converter.toFieldValue(FileUpload(aFieldStorage))
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[163]>", line 1, in <module>
        file_obj = file_converter.toFieldValue(FileUpload(aFieldStorage))
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 47, in toFieldValue
        return self.field._type(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 452, in widget.rst
Failed example:
    file_obj.data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[164]>", line 1, in <module>
        file_obj.data
    NameError: name 'file_obj' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 454, in widget.rst
Failed example:
    print(file_obj.filename.encode('utf8'))
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[165]>", line 1, in <module>
        print(file_obj.filename.encode('utf8'))
    NameError: name 'file_obj' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 459, in widget.rst
Failed example:
    file_obj.contentType != 'text/x-dummy'
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[166]>", line 1, in <module>
        file_obj.contentType != 'text/x-dummy'
    NameError: name 'file_obj' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 463, in widget.rst
Failed example:
    image_obj = image_converter.toFieldValue(FileUpload(aFieldStorage))
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[168]>", line 1, in <module>
        image_obj = image_converter.toFieldValue(FileUpload(aFieldStorage))
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 47, in toFieldValue
        return self.field._type(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
        self._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
        super(NamedImage, self)._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 464, in widget.rst
Failed example:
    image_obj.data == image_data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[169]>", line 1, in <module>
        image_obj.data == image_data
    NameError: name 'image_obj' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 466, in widget.rst
Failed example:
    image_obj.filename
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[170]>", line 1, in <module>
        image_obj.filename
    NameError: name 'image_obj' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 468, in widget.rst
Failed example:
    image_obj.contentType != 'image/x-dummy'
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[171]>", line 1, in <module>
        image_obj.contentType != 'image/x-dummy'
    NameError: name 'image_obj' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 531, in widget.rst
Failed example:
    bytes_file_converter.toFieldValue(
        NamedFile(data=b'testfile', filename=u'test.txt'))
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[191]>", line 2, in <module>
        NamedFile(data=b'testfile', filename=u'test.txt'))
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 534, in widget.rst
Failed example:
    bytes_image_converter.toFieldValue(
        NamedImage(data=b'testimage', filename=u'test.png'))
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[192]>", line 2, in <module>
        NamedImage(data=b'testimage', filename=u'test.png'))
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
        self._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
        super(NamedImage, self)._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 541, in widget.rst
Failed example:
    afile = bytes_file_converter.toWidgetValue(
        b'filenameb64:dGVzdC50eHQ=;datab64:dGVzdGZpbGU=')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[193]>", line 2, in <module>
        b'filenameb64:dGVzdC50eHQ=;datab64:dGVzdGZpbGU=')
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 101, in toWidgetValue
        value = NamedFile(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 543, in widget.rst
Failed example:
    afile
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[194]>", line 1, in <module>
        afile
    NameError: name 'afile' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 545, in widget.rst
Failed example:
    afile.data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[195]>", line 1, in <module>
        afile.data
    NameError: name 'afile' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 547, in widget.rst
Failed example:
    afile.filename
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[196]>", line 1, in <module>
        afile.filename
    NameError: name 'afile' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 550, in widget.rst
Failed example:
    aimage = bytes_image_converter.toWidgetValue(
        b'filenameb64:dGVzdC5wbmc=;datab64:dGVzdGltYWdl')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[197]>", line 2, in <module>
        b'filenameb64:dGVzdC5wbmc=;datab64:dGVzdGltYWdl')
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 99, in toWidgetValue
        value = NamedImage(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
        self._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
        super(NamedImage, self)._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 552, in widget.rst
Failed example:
    aimage
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[198]>", line 1, in <module>
        aimage
    NameError: name 'aimage' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 554, in widget.rst
Failed example:
    aimage.data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[199]>", line 1, in <module>
        aimage.data
    NameError: name 'aimage' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 556, in widget.rst
Failed example:
    aimage.filename
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[200]>", line 1, in <module>
        aimage.filename
    NameError: name 'aimage' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 698, in widget.rst
Failed example:
    file_widget = setup_widget('file', content, True)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[244]>", line 1, in <module>
        file_widget = setup_widget('file', content, True)
      File "<doctest widget.rst[217]>", line 17, in setup_widget
        widget.value = converter.toWidgetValue(value)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 101, in toWidgetValue
        value = NamedFile(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 699, in widget.rst
Failed example:
    image_widget = setup_widget('image', content, True)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[245]>", line 1, in <module>
        image_widget = setup_widget('image', content, True)
      File "<doctest widget.rst[217]>", line 17, in setup_widget
        widget.value = converter.toWidgetValue(value)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 99, in toWidgetValue
        value = NamedImage(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
        self._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
        super(NamedImage, self)._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 764, in widget.rst
Failed example:
    file_widget = setup_widget('file', content, True)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[271]>", line 1, in <module>
        file_widget = setup_widget('file', content, True)
      File "<doctest widget.rst[217]>", line 17, in setup_widget
        widget.value = converter.toWidgetValue(value)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 101, in toWidgetValue
        value = NamedFile(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 765, in widget.rst
Failed example:
    image_widget = setup_widget('image', content, True)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[272]>", line 1, in <module>
        image_widget = setup_widget('image', content, True)
      File "<doctest widget.rst[217]>", line 17, in setup_widget
        widget.value = converter.toWidgetValue(value)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 99, in toWidgetValue
        value = NamedImage(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
        self._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
        super(NamedImage, self)._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 797, in widget.rst
Failed example:
    file_widget.update()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[280]>", line 1, in <module>
        file_widget.update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/text.py", line 36, in update
        super(TextWidget, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/widget.py", line 171, in update
        super(HTMLFormElement, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/patches/z3c_form.py", line 47, in _wrapped
        return update(self)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/widget.py", line 88, in update
        widget_value = self.extract()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 294, in extract
        data = _make_namedfile(data, self.field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 77, in _make_namedfile
        value = NamedFile(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 798, in widget.rst
Failed example:
    uploaded = file_widget.extract()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[281]>", line 1, in <module>
        uploaded = file_widget.extract()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 294, in extract
        data = _make_namedfile(data, self.field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 77, in _make_namedfile
        value = NamedFile(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 799, in widget.rst
Failed example:
    uploaded
Expected:
    <plone.namedfile.file.NamedFile object at ...>
Got:
    <ZPublisher.HTTPRequest.FileUpload object at 0x7f154329ffd0>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 803, in widget.rst
Failed example:
    content.file_field
Expected:
    b'filenameb64:cGxvbmUucGRm;datab64:cmFuZG9tIGZpbGUgY29udGVudA=='
Got:
    b'filenameb64:bG9nby50aWZm;datab64:bm8gaW1hZ2U='
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 808, in widget.rst
Failed example:
    image_widget.update()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[286]>", line 1, in <module>
        image_widget.update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/text.py", line 36, in update
        super(TextWidget, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/widget.py", line 171, in update
        super(HTMLFormElement, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/patches/z3c_form.py", line 47, in _wrapped
        return update(self)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/widget.py", line 88, in update
        widget_value = self.extract()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 294, in extract
        data = _make_namedfile(data, self.field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 77, in _make_namedfile
        value = NamedFile(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 809, in widget.rst
Failed example:
    uploaded = image_widget.extract()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[287]>", line 1, in <module>
        uploaded = image_widget.extract()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 294, in extract
        data = _make_namedfile(data, self.field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 77, in _make_namedfile
        value = NamedFile(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 810, in widget.rst
Failed example:
    uploaded
Expected:
    <plone.namedfile.file.NamedFile object at ...>
Got:
    <ZPublisher.HTTPRequest.FileUpload object at 0x7f154329ffd0>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 820, in widget.rst
Failed example:
    file_widget = setup_widget('file', content, True)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[291]>", line 1, in <module>
        file_widget = setup_widget('file', content, True)
      File "<doctest widget.rst[217]>", line 17, in setup_widget
        widget.value = converter.toWidgetValue(value)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 101, in toWidgetValue
        value = NamedFile(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 821, in widget.rst
Failed example:
    image_widget = setup_widget('image', content, True)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[292]>", line 1, in <module>
        image_widget = setup_widget('image', content, True)
      File "<doctest widget.rst[217]>", line 17, in setup_widget
        widget.value = converter.toWidgetValue(value)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 99, in toWidgetValue
        value = NamedImage(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
        self._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
        super(NamedImage, self)._setData(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 826, in widget.rst
Failed example:
    file_widget.update()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[293]>", line 1, in <module>
        file_widget.update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/text.py", line 36, in update
        super(TextWidget, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/widget.py", line 171, in update
        super(HTMLFormElement, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/patches/z3c_form.py", line 47, in _wrapped
        return update(self)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/widget.py", line 88, in update
        widget_value = self.extract()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 294, in extract
        data = _make_namedfile(data, self.field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 77, in _make_namedfile
        value = NamedFile(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 827, in widget.rst
Failed example:
    print(file_widget.render())
Expected:
    <... id="widget.id.file" class="named-file-widget required bytes-field">...
    <a href="http://127.0.0.1/content2/++widget++widget.name.file/@@download/plone.pdf" >plone.pdf</a>...
    <input type="radio"... id="widget.id.file-nochange"...
    <input type="radio"... id="widget.id.file-replace"...
    <input type="file"... id="widget.id.file-input"...
Got:
    <span id="widget.id.file" class="named-file-widget">
    <BLANKLINE>
    <BLANKLINE>
    <BLANKLINE>
    <BLANKLINE>
            <input type="file" id="widget.id.file-input" name="widget.name.file" />
    <BLANKLINE>
    <BLANKLINE>
    </span>
    <BLANKLINE>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 834, in widget.rst
Failed example:
    image_widget.update()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[295]>", line 1, in <module>
        image_widget.update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/text.py", line 36, in update
        super(TextWidget, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/browser/widget.py", line 171, in update
        super(HTMLFormElement, self).update()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Products.CMFPlone/Products/CMFPlone/patches/z3c_form.py", line 47, in _wrapped
        return update(self)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/widget.py", line 88, in update
        widget_value = self.extract()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 294, in extract
        data = _make_namedfile(data, self.field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 77, in _make_namedfile
        value = NamedFile(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 835, in widget.rst
Failed example:
    print(image_widget.render())
Expected:
    <... id="widget.id.image" class="named-image-widget required bytes-field">...
    <a href="http://127.0.0.1/content2/++widget++widget.name.image/@@download/logo.tiff" >logo.tiff</a>...
    <input type="radio"... id="widget.id.image-nochange"...
    <input type="radio"... id="widget.id.image-replace"...
    <input type="file"... id="widget.id.image-input"...
Got:
    <span id="widget.id.image" class="named-image-widget">
    <BLANKLINE>
    <BLANKLINE>
    <BLANKLINE>
    <BLANKLINE>
            <input type="file" id="widget.id.image-input" name="widget.name.image" />
    <BLANKLINE>
    <BLANKLINE>
    </span>
    <BLANKLINE>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 857, in widget.rst
Failed example:
    content = BytesContent(
        NamedFile(data=b"testfile", filename=u"test.txt"),
        NamedImage(data=b"testimage", filename=u"test.jpg"))
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[298]>", line 2, in <module>
        NamedFile(data=b"testfile", filename=u"test.txt"),
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 871, in widget.rst
Failed example:
    view()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[306]>", line 1, in <module>
        view()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 393, in __call__
        file_ = _make_namedfile(file_, field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 77, in _make_namedfile
        value = NamedFile(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 874, in widget.rst
Failed example:
    request.response.getHeader('Content-Disposition')
Expected:
    "attachment; filename*=UTF-8''test.txt"
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 878, in widget.rst
Failed example:
    view()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[309]>", line 1, in <module>
        view()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 393, in __call__
        file_ = _make_namedfile(file_, field, self.context)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.py", line 77, in _make_namedfile
        value = NamedFile(data=data, filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 881, in widget.rst
Failed example:
    request.response.getHeader('Content-Disposition')
Expected:
    "attachment; filename*=UTF-8''test.jpg"
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 921, in widget.rst
Failed example:
    validator.validate(file_obj) is None
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[322]>", line 1, in <module>
        validator.validate(file_obj) is None
    NameError: name 'file_obj' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 957, in widget.rst
Failed example:
    content.file_field = NamedFile(data=b'My file data', filename=u'data.txt')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest widget.rst[333]>", line 1, in <module>
        content.file_field = NamedFile(data=b'My file data', filename=u'data.txt')
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 959, in widget.rst
Failed example:
    file_widget.download_url
Expected:
    'http://127.0.0.1/content1/++widget++file_field/@@download/data.txt'
Got:
    'http://127.0.0.1/content1/++widget++file_field/@@download'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 970, in widget.rst
Failed example:
    file_widget.download_url
Expected:
    'http://127.0.0.1/content1/test-form/++widget++file_field/@@download/data.txt'
Got:
    'http://127.0.0.1/content1/test-form/++widget++file_field/@@download'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 980, in widget.rst
Failed example:
    file_widget.download_url
Expected:
    'http://127.0.0.1/content1/test-form/++widget++file_field/@@download/data.txt'
Got:
    'http://127.0.0.1/content1/test-form/++widget++file_field/@@download'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 991, in widget.rst
Failed example:
    file_widget.download_url
Expected:
    'http://127.0.0.1/content1/test-form/++widget++file_field/@@download/data.txt'
Got:
    'http://127.0.0.1/content1/test-form/++widget++file_field/@@download'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 1005, in widget.rst
Failed example:
    file_widget.download_url
Expected:
    'http://127.0.0.1/some/path/++widget++file_field/@@download/data.txt'
Got:
    'http://127.0.0.1/some/path/++widget++file_field/@@download'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/widget.rst", line 1011, in widget.rst
Failed example:
    file_widget.download_url
Expected:
    'http://127.0.0.1/some/path/++widget++my_widget/@@download/data.txt'
Got:
    'http://127.0.0.1/some/path/++widget++my_widget/@@download'


  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/srv/python3.6/lib/python3.6/doctest.py", line 2199, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.namedfile.handler.rst

Error Message:
Failed doctest test for handler.rst

Stack Trace:
Failed doctest test for handler.rst
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 22, in handler.rst
Failed example:
    from StringIO import StringIO
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest handler.rst[1]>", line 1, in <module>
        from StringIO import StringIO
    ModuleNotFoundError: No module named 'StringIO'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 24, in handler.rst
Failed example:
    xmlconfig.xmlconfig(StringIO(configuration))
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest handler.rst[3]>", line 1, in <module>
        xmlconfig.xmlconfig(StringIO(configuration))
    NameError: name 'StringIO' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 49, in handler.rst
Failed example:
    print prettyXML(element)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest handler.rst[14]>", line 1
        print prettyXML(element)
                      ^
    SyntaxError: invalid syntax
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 72, in handler.rst
Failed example:
    reciprocal.title
Expected:
    u'Test'
Got:
    'Test'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 74, in handler.rst
Failed example:
    reciprocal.description
Expected:
    u'Test desc'
Got:
    'Test desc'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 92, in handler.rst
Failed example:
    print prettyXML(element)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest handler.rst[27]>", line 1
        print prettyXML(element)
                      ^
    SyntaxError: invalid syntax
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 115, in handler.rst
Failed example:
    reciprocal.title
Expected:
    u'Test'
Got:
    'Test'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 117, in handler.rst
Failed example:
    reciprocal.description
Expected:
    u'Test desc'
Got:
    'Test desc'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 135, in handler.rst
Failed example:
    print prettyXML(element)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest handler.rst[40]>", line 1
        print prettyXML(element)
                      ^
    SyntaxError: invalid syntax
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 158, in handler.rst
Failed example:
    reciprocal.title
Expected:
    u'Test'
Got:
    'Test'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 160, in handler.rst
Failed example:
    reciprocal.description
Expected:
    u'Test desc'
Got:
    'Test desc'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 178, in handler.rst
Failed example:
    print prettyXML(element)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest handler.rst[53]>", line 1
        print prettyXML(element)
                      ^
    SyntaxError: invalid syntax
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 201, in handler.rst
Failed example:
    reciprocal.title
Expected:
    u'Test'
Got:
    'Test'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/handler.rst", line 203, in handler.rst
Failed example:
    reciprocal.description
Expected:
    u'Test desc'
Got:
    'Test desc'


  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/srv/python3.6/lib/python3.6/doctest.py", line 2199, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.namedfile.marshaler.rst

Error Message:
Failed doctest test for marshaler.rst

Stack Trace:
Failed doctest test for marshaler.rst
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 24, in marshaler.rst
Failed example:
    from StringIO import StringIO
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[1]>", line 1, in <module>
        from StringIO import StringIO
    ModuleNotFoundError: No module named 'StringIO'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 26, in marshaler.rst
Failed example:
    xmlconfig.xmlconfig(StringIO(configuration))
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[3]>", line 1, in <module>
        xmlconfig.xmlconfig(StringIO(configuration))
    NameError: name 'StringIO' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 40, in marshaler.rst
Failed example:
    fileValue = NamedFile('dummy test data', 'text/plain', filename=u"test.txt")
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[8]>", line 1, in <module>
        fileValue = NamedFile('dummy test data', 'text/plain', filename=u"test.txt")
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 60, in marshaler.rst
Failed example:
    imageValue = NamedImage(zptlogo, 'image/gif', filename=u'zptl\xf8go.gif')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[10]>", line 1, in <module>
        imageValue = NamedImage(zptlogo, 'image/gif', filename=u'zptl\xf8go.gif')
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 275, in __init__
        self.contentType, self._width, self._height = getImageInfo(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/utils/__init__.py", line 120, in getImageInfo
        w, h = struct.unpack('<HH', data[6:10])
    TypeError: a bytes-like object is required, not 'str'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 69, in marshaler.rst
Failed example:
    t._file = fileValue
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[14]>", line 1, in <module>
        t._file = fileValue
    NameError: name 'fileValue' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 70, in marshaler.rst
Failed example:
    t._image = imageValue
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[15]>", line 1, in <module>
        t._image = imageValue
    NameError: name 'imageValue' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 87, in marshaler.rst
Failed example:
    marshaler.getContentType()
Expected:
    'text/plain'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 98, in marshaler.rst
Failed example:
    marshaler.getContentType()
Expected:
    'image/gif'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 106, in marshaler.rst
Failed example:
    marshaler.marshal(primary=True)
Expected:
    'dummy test data'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 109, in marshaler.rst
Failed example:
    marshaler.getContentType()
Expected:
    'text/plain'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 117, in marshaler.rst
Failed example:
    marshaler.marshal(primary=True) == zptlogo
Expected:
    True
Got:
    False
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 120, in marshaler.rst
Failed example:
    marshaler.getContentType()
Expected:
    'image/gif'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 146, in marshaler.rst
Failed example:
    print messageBody
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[43]>", line 1
        print messageBody
                        ^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean print(messageBody)?
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 165, in marshaler.rst
Failed example:
    newContent._file.data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[49]>", line 1, in <module>
        newContent._file.data
    AttributeError: 'NoneType' object has no attribute 'data'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 167, in marshaler.rst
Failed example:
    newContent._file.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[50]>", line 1, in <module>
        newContent._file.contentType
    AttributeError: 'NoneType' object has no attribute 'contentType'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 169, in marshaler.rst
Failed example:
    newContent._file.filename
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[51]>", line 1, in <module>
        newContent._file.filename
    AttributeError: 'NoneType' object has no attribute 'filename'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 181, in marshaler.rst
Failed example:
    print messageBody # doctest: +ELLIPSIS
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[56]>", line 1
        print messageBody # doctest: +ELLIPSIS
                        ^
    SyntaxError: Missing parentheses in call to 'print'. Did you mean print(messageBody # doctest: +ELLIPSIS)?
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 210, in marshaler.rst
Failed example:
    initializeObjectFromSchema(newContent, ITestContent, inputMessage)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[59]>", line 1, in <module>
        initializeObjectFromSchema(newContent, ITestContent, inputMessage)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.rfc822/plone/rfc822/_utils.py", line 155, in initializeObjectFromSchema
        context, getFieldsInOrder(schema), message, defaultCharset
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.rfc822/plone/rfc822/_utils.py", line 260, in initializeObject
        "found for %s" % (len(payloads), len(primary), repr(context))
    ValueError: Got 1 payloads for message, but 2 primary fields found for <TestContent object at 0x7f1560a783c8>
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 212, in marshaler.rst
Failed example:
    newContent._file.data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[60]>", line 1, in <module>
        newContent._file.data
    AttributeError: 'NoneType' object has no attribute 'data'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 214, in marshaler.rst
Failed example:
    newContent._file.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[61]>", line 1, in <module>
        newContent._file.contentType
    AttributeError: 'NoneType' object has no attribute 'contentType'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 216, in marshaler.rst
Failed example:
    newContent._file.filename
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[62]>", line 1, in <module>
        newContent._file.filename
    AttributeError: 'NoneType' object has no attribute 'filename'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 219, in marshaler.rst
Failed example:
    newContent._image.data == zptlogo
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[63]>", line 1, in <module>
        newContent._image.data == zptlogo
    AttributeError: 'NoneType' object has no attribute 'data'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 221, in marshaler.rst
Failed example:
    newContent._image.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[64]>", line 1, in <module>
        newContent._image.contentType
    AttributeError: 'NoneType' object has no attribute 'contentType'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/marshaler.rst", line 223, in marshaler.rst
Failed example:
    newContent._image.filename
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest marshaler.rst[65]>", line 1, in <module>
        newContent._image.filename
    AttributeError: 'NoneType' object has no attribute 'filename'


  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/srv/python3.6/lib/python3.6/doctest.py", line 2199, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.namedfile.usage.rst

Error Message:
Failed doctest test for usage.rst

Stack Trace:
Failed doctest test for usage.rst
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 44, in usage.rst
Failed example:
    container = FileContainer()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[6]>", line 1, in <module>
        container = FileContainer()
      File "<doctest usage.rst[5]>", line 5, in __init__
        self.simple = namedfile.NamedFile()
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 46, in usage.rst
Failed example:
    container.simple.data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[7]>", line 1, in <module>
        container.simple.data
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 48, in usage.rst
Failed example:
    container.simple.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[8]>", line 1, in <module>
        container.simple.contentType
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 50, in usage.rst
Failed example:
    container.simple.filename is None
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[9]>", line 1, in <module>
        container.simple.filename is None
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 53, in usage.rst
Failed example:
    container.image.data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[10]>", line 1, in <module>
        container.image.data
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 55, in usage.rst
Failed example:
    container.image.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[11]>", line 1, in <module>
        container.image.contentType
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 57, in usage.rst
Failed example:
    container.image.filename is None
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[12]>", line 1, in <module>
        container.image.filename is None
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 60, in usage.rst
Failed example:
    container.blob.data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[13]>", line 1, in <module>
        container.blob.data
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 62, in usage.rst
Failed example:
    container.blob.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[14]>", line 1, in <module>
        container.blob.contentType
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 64, in usage.rst
Failed example:
    container.blob.filename is None
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[15]>", line 1, in <module>
        container.blob.filename is None
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 66, in usage.rst
Failed example:
    container.blobimage.data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[16]>", line 1, in <module>
        container.blobimage.data
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 68, in usage.rst
Failed example:
    container.blobimage.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[17]>", line 1, in <module>
        container.blobimage.contentType
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 70, in usage.rst
Failed example:
    container.blobimage.filename is None
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[18]>", line 1, in <module>
        container.blobimage.filename is None
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 76, in usage.rst
Failed example:
    container.simple = namedfile.NamedFile('dummy test data', filename=u"test.txt")
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[19]>", line 1, in <module>
        container.simple = namedfile.NamedFile('dummy test data', filename=u"test.txt")
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
        self.data = data
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
        seek = data.seek
    AttributeError: 'bytes' object has no attribute 'seek'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 77, in usage.rst
Failed example:
    container.simple.data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[20]>", line 1, in <module>
        container.simple.data
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 79, in usage.rst
Failed example:
    container.simple.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[21]>", line 1, in <module>
        container.simple.contentType
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 81, in usage.rst
Failed example:
    container.simple.filename
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[22]>", line 1, in <module>
        container.simple.filename
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 84, in usage.rst
Failed example:
    container.blob = namedfile.NamedBlobFile('dummy test data', filename=u"test.txt")
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[23]>", line 1, in <module>
        container.blob = namedfile.NamedBlobFile('dummy test data', filename=u"test.txt")
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
        f.write('')
    TypeError: a bytes-like object is required, not 'str'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 85, in usage.rst
Failed example:
    container.blob.data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[24]>", line 1, in <module>
        container.blob.data
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 87, in usage.rst
Failed example:
    container.blob.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[25]>", line 1, in <module>
        container.blob.contentType
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 89, in usage.rst
Failed example:
    container.blob.filename
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[26]>", line 1, in <module>
        container.blob.filename
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 114, in usage.rst
Failed example:
    container.image = namedfile.NamedImage(zptlogo, filename=u"zpt.gif")
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[28]>", line 1, in <module>
        container.image = namedfile.NamedImage(zptlogo, filename=u"zpt.gif")
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 275, in __init__
        self.contentType, self._width, self._height = getImageInfo(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/utils/__init__.py", line 120, in getImageInfo
        w, h = struct.unpack('<HH', data[6:10])
    TypeError: a bytes-like object is required, not 'str'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 115, in usage.rst
Failed example:
    container.image.data == zptlogo
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[29]>", line 1, in <module>
        container.image.data == zptlogo
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 117, in usage.rst
Failed example:
    container.image.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[30]>", line 1, in <module>
        container.image.contentType
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 119, in usage.rst
Failed example:
    container.image.filename
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[31]>", line 1, in <module>
        container.image.filename
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 122, in usage.rst
Failed example:
    container.blobimage = namedfile.NamedBlobImage(zptlogo, filename=u"zpt.gif")
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[32]>", line 1, in <module>
        container.blobimage = namedfile.NamedBlobImage(zptlogo, filename=u"zpt.gif")
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
        filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
        f.write('')
    TypeError: a bytes-like object is required, not 'str'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 123, in usage.rst
Failed example:
    container.blobimage.data == zptlogo
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[33]>", line 1, in <module>
        container.blobimage.data == zptlogo
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 125, in usage.rst
Failed example:
    container.blobimage.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[34]>", line 1, in <module>
        container.blobimage.contentType
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 127, in usage.rst
Failed example:
    container.blobimage.filename
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[35]>", line 1, in <module>
        container.blobimage.filename
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 132, in usage.rst
Failed example:
    container.image = namedfile.NamedImage(zptlogo, contentType='image/foo', filename=u"zpt.gif")
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[36]>", line 1, in <module>
        container.image = namedfile.NamedImage(zptlogo, contentType='image/foo', filename=u"zpt.gif")
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 275, in __init__
        self.contentType, self._width, self._height = getImageInfo(data)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/utils/__init__.py", line 120, in getImageInfo
        w, h = struct.unpack('<HH', data[6:10])
    TypeError: a bytes-like object is required, not 'str'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 133, in usage.rst
Failed example:
    container.image.data == zptlogo
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[37]>", line 1, in <module>
        container.image.data == zptlogo
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 135, in usage.rst
Failed example:
    container.image.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[38]>", line 1, in <module>
        container.image.contentType
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 137, in usage.rst
Failed example:
    container.image.filename
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[39]>", line 1, in <module>
        container.image.filename
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 140, in usage.rst
Failed example:
    container.blobimage = namedfile.NamedBlobImage(zptlogo, contentType='image/foo', filename=u"zpt.gif")
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[40]>", line 1, in <module>
        container.blobimage = namedfile.NamedBlobImage(zptlogo, contentType='image/foo', filename=u"zpt.gif")
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
        filename=filename)
      File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
        f.write('')
    TypeError: a bytes-like object is required, not 'str'
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 141, in usage.rst
Failed example:
    container.blobimage.data == zptlogo
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[41]>", line 1, in <module>
        container.blobimage.data == zptlogo
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 143, in usage.rst
Failed example:
    container.blobimage.contentType
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[42]>", line 1, in <module>
        container.blobimage.contentType
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 145, in usage.rst
Failed example:
    container.blobimage.filename
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[43]>", line 1, in <module>
        container.blobimage.filename
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 150, in usage.rst
Failed example:
    container.image.filename = 'foo'
Expected:
    Traceback (most recent call last):
    ...
    WrongType: ('foo', <type 'unicode'>, 'filename')
Got:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[44]>", line 1, in <module>
        container.image.filename = 'foo'
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 171, in usage.rst
Failed example:
    download = Download(container, request).publishTraverse(request, 'simple')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[48]>", line 1, in <module>
        download = Download(container, request).publishTraverse(request, 'simple')
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 172, in usage.rst
Failed example:
    download()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[49]>", line 1, in <module>
        download()
    NameError: name 'download' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 174, in usage.rst
Failed example:
    request.response.getHeader('Content-Length')
Expected:
    '15'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 176, in usage.rst
Failed example:
    request.response.getHeader('Content-Type')
Expected:
    'text/plain'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 178, in usage.rst
Failed example:
    request.response.getHeader('Content-Disposition')
Expected:
    "attachment; filename*=UTF-8''test.txt"
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 182, in usage.rst
Failed example:
    download = Download(container, request).publishTraverse(request, 'blob')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[54]>", line 1, in <module>
        download = Download(container, request).publishTraverse(request, 'blob')
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 183, in usage.rst
Failed example:
    data = download()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[55]>", line 1, in <module>
        data = download()
    NameError: name 'download' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 184, in usage.rst
Failed example:
    hasattr(data, 'read') and data.read() or data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[56]>", line 1, in <module>
        hasattr(data, 'read') and data.read() or data
    NameError: name 'data' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 186, in usage.rst
Failed example:
    request.response.getHeader('Content-Length')
Expected:
    '15'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 188, in usage.rst
Failed example:
    request.response.getHeader('Content-Type')
Expected:
    'text/plain'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 190, in usage.rst
Failed example:
    request.response.getHeader('Content-Disposition')
Expected:
    "attachment; filename*=UTF-8''test.txt"
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 194, in usage.rst
Failed example:
    download = Download(container, request).publishTraverse(request, 'image')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[61]>", line 1, in <module>
        download = Download(container, request).publishTraverse(request, 'image')
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 195, in usage.rst
Failed example:
    download() == zptlogo
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[62]>", line 1, in <module>
        download() == zptlogo
    NameError: name 'download' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 198, in usage.rst
Failed example:
    request.response.getHeader('Content-Length')
Expected:
    '341'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 200, in usage.rst
Failed example:
    request.response.getHeader('Content-Type')
Expected:
    'image/foo'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 202, in usage.rst
Failed example:
    request.response.getHeader('Content-Disposition')
Expected:
    "attachment; filename*=UTF-8''zpt.gif"
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 206, in usage.rst
Failed example:
    download = Download(container, request).publishTraverse(request, 'blobimage')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[67]>", line 1, in <module>
        download = Download(container, request).publishTraverse(request, 'blobimage')
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 207, in usage.rst
Failed example:
    data = download()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[68]>", line 1, in <module>
        data = download()
    NameError: name 'download' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 208, in usage.rst
Failed example:
    (hasattr(data, 'read') and data.read() or data) == zptlogo
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[69]>", line 1, in <module>
        (hasattr(data, 'read') and data.read() or data) == zptlogo
    NameError: name 'data' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 210, in usage.rst
Failed example:
    request.response.getHeader('Content-Length')
Expected:
    '341'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 212, in usage.rst
Failed example:
    request.response.getHeader('Content-Type')
Expected:
    'image/foo'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 214, in usage.rst
Failed example:
    request.response.getHeader('Content-Disposition')
Expected:
    "attachment; filename*=UTF-8''zpt.gif"
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 232, in usage.rst
Failed example:
    display_file = DisplayFile(container, request).publishTraverse(request, 'simple')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[76]>", line 1, in <module>
        display_file = DisplayFile(container, request).publishTraverse(request, 'simple')
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 233, in usage.rst
Failed example:
    display_file()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[77]>", line 1, in <module>
        display_file()
    NameError: name 'display_file' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 235, in usage.rst
Failed example:
    request.response.getHeader('Content-Length')
Expected:
    '15'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 237, in usage.rst
Failed example:
    request.response.getHeader('Content-Type')
Expected:
    'text/plain'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 242, in usage.rst
Failed example:
    display_file = DisplayFile(container, request).publishTraverse(request, 'blob')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[82]>", line 1, in <module>
        display_file = DisplayFile(container, request).publishTraverse(request, 'blob')
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 243, in usage.rst
Failed example:
    data = display_file()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[83]>", line 1, in <module>
        data = display_file()
    NameError: name 'display_file' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 244, in usage.rst
Failed example:
    hasattr(data, 'read') and data.read() or data
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[84]>", line 1, in <module>
        hasattr(data, 'read') and data.read() or data
    NameError: name 'data' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 246, in usage.rst
Failed example:
    request.response.getHeader('Content-Length')
Expected:
    '15'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 248, in usage.rst
Failed example:
    request.response.getHeader('Content-Type')
Expected:
    'text/plain'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 253, in usage.rst
Failed example:
    display_file = DisplayFile(container, request).publishTraverse(request, 'image')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[89]>", line 1, in <module>
        display_file = DisplayFile(container, request).publishTraverse(request, 'image')
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 254, in usage.rst
Failed example:
    display_file() == zptlogo
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[90]>", line 1, in <module>
        display_file() == zptlogo
    NameError: name 'display_file' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 257, in usage.rst
Failed example:
    request.response.getHeader('Content-Length')
Expected:
    '341'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 259, in usage.rst
Failed example:
    request.response.getHeader('Content-Type')
Expected:
    'image/foo'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 264, in usage.rst
Failed example:
    display_file = DisplayFile(container, request).publishTraverse(request, 'blobimage')
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[95]>", line 1, in <module>
        display_file = DisplayFile(container, request).publishTraverse(request, 'blobimage')
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 265, in usage.rst
Failed example:
    data = display_file()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[96]>", line 1, in <module>
        data = display_file()
    NameError: name 'display_file' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 266, in usage.rst
Failed example:
    (hasattr(data, 'read') and data.read() or data) == zptlogo
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[97]>", line 1, in <module>
        (hasattr(data, 'read') and data.read() or data) == zptlogo
    NameError: name 'data' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 268, in usage.rst
Failed example:
    request.response.getHeader('Content-Length')
Expected:
    '341'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 270, in usage.rst
Failed example:
    request.response.getHeader('Content-Type')
Expected:
    'image/foo'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 300, in usage.rst
Failed example:
    download = Download(container, request)
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[108]>", line 1, in <module>
        download = Download(container, request)
    NameError: name 'container' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 301, in usage.rst
Failed example:
    download()
Exception raised:
    Traceback (most recent call last):
      File "/srv/python3.6/lib/python3.6/doctest.py", line 1330, in __run
        compileflags, 1), test.globs)
      File "<doctest usage.rst[109]>", line 1, in <module>
        download()
    NameError: name 'download' is not defined
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 303, in usage.rst
Failed example:
    request.response.getHeader('Content-Length')
Expected:
    '15'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 305, in usage.rst
Failed example:
    request.response.getHeader('Content-Type')
Expected:
    'text/plain'
Got nothing
----------------------------------------------------------------------
File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/usage.rst", line 307, in usage.rst
Failed example:
    request.response.getHeader('Content-Disposition')
Expected:
    "attachment; filename*=UTF-8''test.txt"
Got nothing


  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/srv/python3.6/lib/python3.6/doctest.py", line 2199, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


FAILED:  plone.app.caching.tests.test_integration.TestOperations.test_disabled

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cbb38>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f155a587a20>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f155a587320>
               context: <ImplicitAcquisitionWrapper f1 at 0x7f15603aa6c0>
               views: <ViewMapper - at 0x7f1563d679e8>
               here: <ImplicitAcquisitionWrapper f1 at 0x7f15603aa6c0>
               container: <ImplicitAcquisitionWrapper f1 at 0x7f15603aa6c0>
               root: <ImplicitAcquisitionWrapper  at 0x7f156533e7e0>
               traverse_subpath: <list - at 0x7f154bb33388>
               user: <ImplicitAcquisitionWrapper - at 0x7f1562057af8>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f15652fccc8>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f1562180488>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/.buildout/eggs/plone.app.caching-1.2.22-py3.6.egg/plone/app/caching/tests/test_integration.py", line 144, in test_disabled
    browser.open(self.portal['f1'].absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.caching.tests.test_profile_with_caching_proxy.TestProfileWithCaching.test_content_files

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/.buildout/eggs/plone.app.caching-1.2.22-py3.6.egg/plone/app/caching/tests/test_profile_with_caching_proxy.py", line 427, in test_content_files
    self.portal['f1']['i1'].image = test_image()
  File "/home/jenkins/.buildout/eggs/plone.app.caching-1.2.22-py3.6.egg/plone/app/caching/tests/test_profile_with_caching_proxy.py", line 43, in test_image
    filename=filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.caching.tests.test_profile_without_caching_proxy.TestProfileWithoutCaching.test_content_files

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/.buildout/eggs/plone.app.caching-1.2.22-py3.6.egg/plone/app/caching/tests/test_profile_without_caching_proxy.py", line 421, in test_content_files
    self.portal['f1']['i1'].image = test_image()
  File "/home/jenkins/.buildout/eggs/plone.app.caching-1.2.22-py3.6.egg/plone/app/caching/tests/test_profile_without_caching_proxy.py", line 40, in test_image
    filename=filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.caching.tests.test_purge.TestScalesPurgePaths.test_scale_purge_paths

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.caching-1.2.22-py3.6.egg/plone/app/caching/tests/test_purge.py", line 429, in setUp
    u'plone-app-caching.jpg')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.caching.tests.test_purge.TestScalesPurgePaths.test_scale_purge_paths_unicode

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.caching-1.2.22-py3.6.egg/plone/app/caching/tests/test_purge.py", line 429, in setUp
    u'plone-app-caching.jpg')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.content.tests.test_widgets.FunctionalBrowserTest.testFileUpload

Error Message:
__str__ returned non-string (type bytes)

Stack Trace:
__str__ returned non-string (type bytes)

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 589, in testFileUpload
    data = json.loads(view())
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.content/plone/app/content/browser/file.py", line 132, in __call__
    if not filedata:
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 45, in __len__
    data = str(self)


FAILED:  plone.app.content.tests.test_widgets.FunctionalBrowserTest.testFileUploadTxt

Error Message:
__str__ returned non-string (type bytes)

Stack Trace:
__str__ returned non-string (type bytes)

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.content/plone/app/content/tests/test_widgets.py", line 605, in testFileUploadTxt
    data = json.loads(view())
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.content/plone/app/content/browser/file.py", line 132, in __call__
    if not filedata:
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 45, in __len__
    data = str(self)


FAILED:  plone.app.contenttypes.tests.test_behaviors_leadimage.LeadImageBehaviorFunctionalTest.test_lead_image_viewlet_shows_up

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_behaviors_leadimage.py", line 71, in test_lead_image_viewlet_shows_up
    self.browser.getControl('Save').click()
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
    self.browser._clickSubmit(self._form, self._control)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 270, in make_request
    form, control.name, index, coord=coord, **args)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 314, in _submit
    params=fields, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/response.py", line 297, in goto
    return method(href, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 379, in post
    content_type=content_type)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 755, in _gen_request
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 63, in __call__
    self.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 47, in update
    self.form_instance.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/edit.py", line 58, in update
    super(DefaultEditForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/fieldsets/extensible.py", line 65, in update
    super(ExtensibleForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/patch.py", line 30, in GroupForm_update
    _original_GroupForm_update(self)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 145, in update
    self.actions.execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.z3cform/plone/app/z3cform/csrf.py", line 22, in execute
    super(AuthenticatedButtonActions, self).execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/action.py", line 98, in execute
    result = handler()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 315, in __call__
    return handler(self.form, self.action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 170, in __call__
    return self.func(form, action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/edit.py", line 26, in handleApply
    data, errors = self.extractData()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 98, in extractData
    data, errors = super(GroupForm, self).extractData(setErrors=setErrors)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/form.py", line 148, in extractData
    data, errors = self.widgets.extract()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/field.py", line 303, in extract
    value = interfaces.IDataConverter(widget).toFieldValue(raw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 47, in toFieldValue
    return self.field._type(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_collection.PloneAppCollectionViewsIntegrationTest.test_collection_templates

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_collection.py", line 219, in test_collection_templates
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_collection.py", line 41, in dummy_image
    filename=filename
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_file.FileFunctionalTest.test_add_file

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_file.py", line 137, in test_add_file
    self.browser.getControl('Save').click()
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
    self.browser._clickSubmit(self._form, self._control)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 270, in make_request
    form, control.name, index, coord=coord, **args)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 314, in _submit
    params=fields, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/response.py", line 297, in goto
    return method(href, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 379, in post
    content_type=content_type)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 755, in _gen_request
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 63, in __call__
    self.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 47, in update
    self.form_instance.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 134, in update
    super(DefaultAddForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/fieldsets/extensible.py", line 65, in update
    super(ExtensibleForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/patch.py", line 30, in GroupForm_update
    _original_GroupForm_update(self)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 145, in update
    self.actions.execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.z3cform/plone/app/z3cform/csrf.py", line 22, in execute
    super(AuthenticatedButtonActions, self).execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/action.py", line 98, in execute
    result = handler()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 315, in __call__
    return handler(self.form, self.action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 170, in __call__
    return self.func(form, action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 105, in handleAdd
    data, errors = self.extractData()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 98, in extractData
    data, errors = super(GroupForm, self).extractData(setErrors=setErrors)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/form.py", line 148, in extractData
    data, errors = self.widgets.extract()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/field.py", line 303, in extract
    value = interfaces.IDataConverter(widget).toFieldValue(raw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 47, in toFieldValue
    return self.field._type(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_file.FileFunctionalTest.test_alternative_mime_icon_doc_for_file

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_file.py", line 186, in test_alternative_mime_icon_doc_for_file
    self.browser.getControl('Save').click()
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
    self.browser._clickSubmit(self._form, self._control)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 270, in make_request
    form, control.name, index, coord=coord, **args)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 314, in _submit
    params=fields, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/response.py", line 297, in goto
    return method(href, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 379, in post
    content_type=content_type)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 755, in _gen_request
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 63, in __call__
    self.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 47, in update
    self.form_instance.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 134, in update
    super(DefaultAddForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/fieldsets/extensible.py", line 65, in update
    super(ExtensibleForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/patch.py", line 30, in GroupForm_update
    _original_GroupForm_update(self)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 145, in update
    self.actions.execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.z3cform/plone/app/z3cform/csrf.py", line 22, in execute
    super(AuthenticatedButtonActions, self).execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/action.py", line 98, in execute
    result = handler()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 315, in __call__
    return handler(self.form, self.action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 170, in __call__
    return self.func(form, action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 105, in handleAdd
    data, errors = self.extractData()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 98, in extractData
    data, errors = super(GroupForm, self).extractData(setErrors=setErrors)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/form.py", line 148, in extractData
    data, errors = self.widgets.extract()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/field.py", line 303, in extract
    value = interfaces.IDataConverter(widget).toFieldValue(raw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 47, in toFieldValue
    return self.field._type(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_file.FileFunctionalTest.test_mime_icon_odt_for_file_

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_file.py", line 203, in test_mime_icon_odt_for_file_
    self.browser.getControl('Save').click()
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
    self.browser._clickSubmit(self._form, self._control)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 270, in make_request
    form, control.name, index, coord=coord, **args)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 314, in _submit
    params=fields, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/response.py", line 297, in goto
    return method(href, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 379, in post
    content_type=content_type)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 755, in _gen_request
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 63, in __call__
    self.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 47, in update
    self.form_instance.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 134, in update
    super(DefaultAddForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/fieldsets/extensible.py", line 65, in update
    super(ExtensibleForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/patch.py", line 30, in GroupForm_update
    _original_GroupForm_update(self)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 145, in update
    self.actions.execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.z3cform/plone/app/z3cform/csrf.py", line 22, in execute
    super(AuthenticatedButtonActions, self).execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/action.py", line 98, in execute
    result = handler()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 315, in __call__
    return handler(self.form, self.action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 170, in __call__
    return self.func(form, action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 105, in handleAdd
    data, errors = self.extractData()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 98, in extractData
    data, errors = super(GroupForm, self).extractData(setErrors=setErrors)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/form.py", line 148, in extractData
    data, errors = self.widgets.extract()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/field.py", line 303, in extract
    value = interfaces.IDataConverter(widget).toFieldValue(raw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 47, in toFieldValue
    return self.field._type(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_file.FileFunctionalTest.test_mime_icon_pdf_for_file_

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_file.py", line 166, in test_mime_icon_pdf_for_file_
    self.browser.getControl('Save').click()
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
    self.browser._clickSubmit(self._form, self._control)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 270, in make_request
    form, control.name, index, coord=coord, **args)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 314, in _submit
    params=fields, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/response.py", line 297, in goto
    return method(href, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 379, in post
    content_type=content_type)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 755, in _gen_request
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 63, in __call__
    self.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 47, in update
    self.form_instance.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 134, in update
    super(DefaultAddForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/fieldsets/extensible.py", line 65, in update
    super(ExtensibleForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/patch.py", line 30, in GroupForm_update
    _original_GroupForm_update(self)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 145, in update
    self.actions.execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.z3cform/plone/app/z3cform/csrf.py", line 22, in execute
    super(AuthenticatedButtonActions, self).execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/action.py", line 98, in execute
    result = handler()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 315, in __call__
    return handler(self.form, self.action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 170, in __call__
    return self.func(form, action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 105, in handleAdd
    data, errors = self.extractData()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 98, in extractData
    data, errors = super(GroupForm, self).extractData(setErrors=setErrors)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/form.py", line 148, in extractData
    data, errors = self.widgets.extract()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/field.py", line 303, in extract
    value = interfaces.IDataConverter(widget).toFieldValue(raw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 47, in toFieldValue
    return self.field._type(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_file.FileFunctionalTest.test_shortname_file

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_file.py", line 152, in test_shortname_file
    self.browser.getControl('Save').click()
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
    self.browser._clickSubmit(self._form, self._control)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 270, in make_request
    form, control.name, index, coord=coord, **args)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 314, in _submit
    params=fields, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/response.py", line 297, in goto
    return method(href, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 379, in post
    content_type=content_type)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 755, in _gen_request
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 63, in __call__
    self.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 47, in update
    self.form_instance.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 134, in update
    super(DefaultAddForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/fieldsets/extensible.py", line 65, in update
    super(ExtensibleForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/patch.py", line 30, in GroupForm_update
    _original_GroupForm_update(self)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 145, in update
    self.actions.execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.z3cform/plone/app/z3cform/csrf.py", line 22, in execute
    super(AuthenticatedButtonActions, self).execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/action.py", line 98, in execute
    result = handler()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 315, in __call__
    return handler(self.form, self.action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 170, in __call__
    return self.func(form, action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 105, in handleAdd
    data, errors = self.extractData()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 98, in extractData
    data, errors = super(GroupForm, self).extractData(setErrors=setErrors)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/form.py", line 148, in extractData
    data, errors = self.widgets.extract()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/field.py", line 303, in extract
    value = interfaces.IDataConverter(widget).toFieldValue(raw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 47, in toFieldValue
    return self.field._type(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_file.FileIntegrationTest.test_view_audio_tag

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_file.py", line 103, in test_view_audio_tag
    file.file = NamedFile()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.contenttypes.tests.test_file.FileIntegrationTest.test_view_no_video_audio_tag

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_file.py", line 82, in test_view_no_video_audio_tag
    file.file = NamedFile()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.contenttypes.tests.test_file.FileIntegrationTest.test_view_video_tag

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_file.py", line 93, in test_view_video_tag
    file.file = NamedFile()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.contenttypes.tests.test_folder.FolderViewFunctionalTest.test_folder_album_view

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_folder.py", line 188, in test_folder_album_view
    img1.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_image.py", line 27, in dummy_image
    filename=filename
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_image.ImageFunctionalTest.test_add_image

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_image.py", line 157, in test_add_image
    self.browser.getControl('Save').click()
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
    self.browser._clickSubmit(self._form, self._control)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 270, in make_request
    form, control.name, index, coord=coord, **args)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 314, in _submit
    params=fields, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/response.py", line 297, in goto
    return method(href, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 379, in post
    content_type=content_type)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 755, in _gen_request
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 63, in __call__
    self.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 47, in update
    self.form_instance.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 134, in update
    super(DefaultAddForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/fieldsets/extensible.py", line 65, in update
    super(ExtensibleForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/patch.py", line 30, in GroupForm_update
    _original_GroupForm_update(self)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 145, in update
    self.actions.execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.z3cform/plone/app/z3cform/csrf.py", line 22, in execute
    super(AuthenticatedButtonActions, self).execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/action.py", line 98, in execute
    result = handler()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 315, in __call__
    return handler(self.form, self.action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 170, in __call__
    return self.func(form, action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 105, in handleAdd
    data, errors = self.extractData()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 98, in extractData
    data, errors = super(GroupForm, self).extractData(setErrors=setErrors)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/form.py", line 148, in extractData
    data, errors = self.widgets.extract()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/field.py", line 303, in extract
    value = interfaces.IDataConverter(widget).toFieldValue(raw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 47, in toFieldValue
    return self.field._type(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_image.ImageFunctionalTest.test_add_image_with_shortname

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_image.py", line 173, in test_add_image_with_shortname
    self.browser.getControl('Save').click()
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
    self.browser._clickSubmit(self._form, self._control)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 270, in make_request
    form, control.name, index, coord=coord, **args)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 314, in _submit
    params=fields, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/response.py", line 297, in goto
    return method(href, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 379, in post
    content_type=content_type)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 755, in _gen_request
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 63, in __call__
    self.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 47, in update
    self.form_instance.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 134, in update
    super(DefaultAddForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/fieldsets/extensible.py", line 65, in update
    super(ExtensibleForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/patch.py", line 30, in GroupForm_update
    _original_GroupForm_update(self)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 145, in update
    self.actions.execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.z3cform/plone/app/z3cform/csrf.py", line 22, in execute
    super(AuthenticatedButtonActions, self).execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/action.py", line 98, in execute
    result = handler()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 315, in __call__
    return handler(self.form, self.action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 170, in __call__
    return self.func(form, action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 105, in handleAdd
    data, errors = self.extractData()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 98, in extractData
    data, errors = super(GroupForm, self).extractData(setErrors=setErrors)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/form.py", line 148, in extractData
    data, errors = self.widgets.extract()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/field.py", line 303, in extract
    value = interfaces.IDataConverter(widget).toFieldValue(raw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 47, in toFieldValue
    return self.field._type(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_image.ImageFunctionalTest.test_image_view_fullscreen

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_image.py", line 189, in test_image_view_fullscreen
    self.browser.getControl('Save').click()
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
    self.browser._clickSubmit(self._form, self._control)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 270, in make_request
    form, control.name, index, coord=coord, **args)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 314, in _submit
    params=fields, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/response.py", line 297, in goto
    return method(href, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 379, in post
    content_type=content_type)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 755, in _gen_request
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 63, in __call__
    self.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/layout.py", line 47, in update
    self.form_instance.update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 134, in update
    super(DefaultAddForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/fieldsets/extensible.py", line 65, in update
    super(ExtensibleForm, self).update()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.z3cform/src/plone/z3cform/patch.py", line 30, in GroupForm_update
    _original_GroupForm_update(self)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 145, in update
    self.actions.execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.z3cform/plone/app/z3cform/csrf.py", line 22, in execute
    super(AuthenticatedButtonActions, self).execute()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/action.py", line 98, in execute
    result = handler()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 315, in __call__
    return handler(self.form, self.action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/button.py", line 170, in __call__
    return self.func(form, action)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.dexterity/plone/dexterity/browser/add.py", line 105, in handleAdd
    data, errors = self.extractData()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/group.py", line 98, in extractData
    data, errors = super(GroupForm, self).extractData(setErrors=setErrors)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/form.py", line 148, in extractData
    data, errors = self.widgets.extract()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/z3c.form/src/z3c/form/field.py", line 303, in extract
    value = interfaces.IDataConverter(widget).toFieldValue(raw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.formwidget.namedfile/plone/formwidget/namedfile/converter.py", line 47, in toFieldValue
    return self.field._type(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_image.ImageViewIntegrationTest.test_image_view

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_image.py", line 94, in setUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_image.py", line 27, in dummy_image
    filename=filename
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_image.ImageViewIntegrationTest.test_svg_image

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_image.py", line 94, in setUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_image.py", line 27, in dummy_image
    filename=filename
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_indexes.CatalogIntegrationTest.test_file_fulltext_in_searchable_text_index_string

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_indexes.py", line 273, in test_file_fulltext_in_searchable_text_index_string
    test_file = NamedBlobFile(data=data, filename=u'string.html')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_indexes.CatalogIntegrationTest.test_file_fulltext_in_searchable_text_index_unicode

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_indexes.py", line 295, in test_file_fulltext_in_searchable_text_index_unicode
    test_file = NamedBlobFile(data=data, filename=u'unicode.html')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_indexes.CatalogIntegrationTest.test_file_fulltext_in_searchable_text_plain

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_indexes.py", line 251, in test_file_fulltext_in_searchable_text_plain
    test_file = NamedBlobFile(data=data, filename=u'string.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_indexes.CatalogIntegrationTest.test_getobjsize_file

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_indexes.py", line 383, in test_getobjsize_file
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_indexes.CatalogIntegrationTest.test_getobjsize_image

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_indexes.py", line 366, in test_getobjsize_image
    primary_field_info.field.set(self.image, dummy_image())
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_image.py", line 27, in dummy_image
    filename=filename
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_webdav.WebDAVIntegrationTest.test_file_put

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_webdav.py", line 58, in test_file_put
    self.file.PUT()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/content.py", line 105, in PUT
    data=infile.read(), filename=six.text_type(filename))
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.contenttypes.tests.test_webdav.WebDAVIntegrationTest.test_image_put

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/tests/test_webdav.py", line 45, in test_image_put
    self.image.PUT()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/content.py", line 139, in PUT
    data=infile.read(), filename=six.text_type(filename))
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.dexterity.tests.test_import.TestDexterityTypesImport.testSampleImportStep

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.dexterity/plone/app/dexterity/tests/test_import.py", line 90, in testSampleImportStep
    data = TypeProfileImport(profile_file=plone.namedfile.NamedFile())
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_circular.CircularReferencesDXTestCase.test_circular_reference_manages_relations

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f1559341a58>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f1558b335c0>
               context: <ImplicitAcquisitionWrapper plone at 0x7f156625ce10>
               views: <ViewMapper - at 0x7f1566038ba8>
               here: <ImplicitAcquisitionWrapper plone at 0x7f156625ce10>
               container: <ImplicitAcquisitionWrapper plone at 0x7f156625ce10>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a36e900>
               traverse_subpath: <list - at 0x7f15608ba908>
               user: <ImplicitAcquisitionWrapper - at 0x7f154af7f048>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f154a71a048>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f156544b840>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_circular.CircularReferencesDXTestCase.test_circular_reference_subfolder_deletion

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154b69cd68>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f154b191128>
               context: <ImplicitAcquisitionWrapper plone at 0x7f156275a4c8>
               views: <ViewMapper - at 0x7f154a39c9b0>
               here: <ImplicitAcquisitionWrapper plone at 0x7f156275a4c8>
               container: <ImplicitAcquisitionWrapper plone at 0x7f156275a4c8>
               root: <ImplicitAcquisitionWrapper  at 0x7f154aab7ab0>
               traverse_subpath: <list - at 0x7f154a2fe9c8>
               user: <ImplicitAcquisitionWrapper - at 0x7f154a39e048>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f1562004788>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154af8c9d8>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_circular.CircularReferencesDXTestCase.test_internal_breaches_are_dropped

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f1562889cc0>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f154a2b1240>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154a208ab0>
               views: <ViewMapper - at 0x7f154abeebe0>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154a208ab0>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154a208ab0>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a21d5e8>
               traverse_subpath: <list - at 0x7f15632b7508>
               user: <ImplicitAcquisitionWrapper - at 0x7f154b2aaf78>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f154a421208>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154aa4f510>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_functional.FunctionalReferenceDXTestCase.test_files_with_spaces_removal

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154a0f33c8>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f15628644e0>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154a0b1948>
               views: <ViewMapper - at 0x7f154ab96ac8>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154a0b1948>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154a0b1948>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a3c8828>
               traverse_subpath: <list - at 0x7f1558db4488>
               user: <ImplicitAcquisitionWrapper - at 0x7f154b396240>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f1558db4ec8>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154aea8510>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_functional.FunctionalReferenceDXTestCase.test_linkintegrity_on_off_switch

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f156023a748>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f1558d33ac8>
               context: <ImplicitAcquisitionWrapper plone at 0x7f15652758b8>
               views: <ViewMapper - at 0x7f1558d33da0>
               here: <ImplicitAcquisitionWrapper plone at 0x7f15652758b8>
               container: <ImplicitAcquisitionWrapper plone at 0x7f15652758b8>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a819bd0>
               traverse_subpath: <list - at 0x7f1558dc1988>
               user: <ImplicitAcquisitionWrapper - at 0x7f154aa9cab0>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f154a543248>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154adb6bf8>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_functional.FunctionalReferenceDXTestCase.test_references_on_cloned_objects

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154a934ba8>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f15640e24a8>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154aeb98b8>
               views: <ViewMapper - at 0x7f1558bc5898>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154aeb98b8>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154aeb98b8>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a204750>
               traverse_subpath: <list - at 0x7f1558c89f08>
               user: <ImplicitAcquisitionWrapper - at 0x7f154af90e10>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f154a478408>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154a3a1bf8>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_functional.FunctionalReferenceDXTestCase.test_removal_in_subfolder

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154b7d08d0>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f154b104eb8>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154ab2c3f0>
               views: <ViewMapper - at 0x7f154b1040f0>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154ab2c3f0>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154ab2c3f0>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a34e5e8>
               traverse_subpath: <list - at 0x7f1562f83a48>
               user: <ImplicitAcquisitionWrapper - at 0x7f154acd0240>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f1560a4c708>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154acdf378>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_functional.FunctionalReferenceDXTestCase.test_removal_via_zmi

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154a1f3908>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f154a1ccf98>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154a256c60>
               views: <ViewMapper - at 0x7f154a1ccac8>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154a256c60>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154a256c60>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a459678>
               traverse_subpath: <list - at 0x7f154aad8f48>
               user: <ImplicitAcquisitionWrapper - at 0x7f154a3d7240>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f154ab8bb88>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154a3ca378>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_functional.FunctionalReferenceDXTestCase.test_removal_with_cookie_auth

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154a286b38>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f154a29af28>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154a53edc8>
               views: <ViewMapper - at 0x7f154a28b278>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154a53edc8>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154a53edc8>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a44cb40>
               traverse_subpath: <list - at 0x7f154ac109c8>
               user: <ImplicitAcquisitionWrapper - at 0x7f1549fc8168>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f15627b46c8>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154a511a60>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_functional.FunctionalReferenceDXTestCase.test_renaming_referenced_item

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154a2d1550>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f154a2c6080>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154a1a7090>
               views: <ViewMapper - at 0x7f154a2c6470>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154a1a7090>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154a1a7090>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a19e750>
               traverse_subpath: <list - at 0x7f154a1e0f48>
               user: <ImplicitAcquisitionWrapper - at 0x7f154a1ae168>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f154aa26588>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154a18da60>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_functional.FunctionalReferenceDXTestCase.test_unreferenced_removal

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154abe5dd8>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f154abdd780>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154a170798>
               views: <ViewMapper - at 0x7f154abddc50>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154a170798>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154a170798>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a174048>
               traverse_subpath: <list - at 0x7f154a81ab88>
               user: <ImplicitAcquisitionWrapper - at 0x7f154a03e870>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f154ab83948>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154a008268>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_functional.FunctionalReferenceDXTestCase.test_update

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154a0efc88>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f154a0da438>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154a42d4c8>
               views: <ViewMapper - at 0x7f154a0ea8d0>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154a42d4c8>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154a42d4c8>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a0e72d0>
               traverse_subpath: <list - at 0x7f154a07e708>
               user: <ImplicitAcquisitionWrapper - at 0x7f154a0465a0>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f154a0cd548>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154a40c510>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_functional.FunctionalReferenceDXTestCase.test_warn_about_content

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154a3385c0>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f154a323be0>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154a5aac18>
               views: <ViewMapper - at 0x7f154a323eb8>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154a5aac18>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154a5aac18>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a6141f8>
               traverse_subpath: <list - at 0x7f154a30aec8>
               user: <ImplicitAcquisitionWrapper - at 0x7f154a58c1f8>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f154a594608>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154a5b6c80>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_handlers.ReferenceGenerationDXTestCase.test_relative_to_portal_root_1

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154a4d0e10>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f154a4fb3c8>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154a4f3090>
               views: <ViewMapper - at 0x7f154a320be0>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154a4f3090>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154a4f3090>
               root: <ImplicitAcquisitionWrapper  at 0x7f1549fbdfc0>
               traverse_subpath: <list - at 0x7f154a5ce608>
               user: <ImplicitAcquisitionWrapper - at 0x7f154a5e1ab0>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f1549f85788>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154a4e6f28>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_handlers.ReferenceGenerationDXTestCase.test_relative_to_portal_root_2

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f1549f264a8>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f1549f21e48>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154a649e10>
               views: <ViewMapper - at 0x7f154a64f080>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154a649e10>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154a649e10>
               root: <ImplicitAcquisitionWrapper  at 0x7f154a66eb40>
               traverse_subpath: <list - at 0x7f1549ed2d08>
               user: <ImplicitAcquisitionWrapper - at 0x7f1549ecd240>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f1549ec4f48>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154a6429d8>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_handlers.ReferenceGenerationDXTestCase.test_webserver_rewrites_portal_name

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154ab7bda0>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f1549e8a9e8>
               context: <ImplicitAcquisitionWrapper plone at 0x7f1549ebfea0>
               views: <ViewMapper - at 0x7f154ab58b70>
               here: <ImplicitAcquisitionWrapper plone at 0x7f1549ebfea0>
               container: <ImplicitAcquisitionWrapper plone at 0x7f1549ebfea0>
               root: <ImplicitAcquisitionWrapper  at 0x7f154ab63558>
               traverse_subpath: <list - at 0x7f1549e30588>
               user: <ImplicitAcquisitionWrapper - at 0x7f1549e1f480>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f1549e22fc8>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f1549ebe9d8>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_imagescales.ImageReferenceDXTestCase.test_image_resolveuid_reference_creation

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f1549de0860>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f1549de7fd0>
               context: <ImplicitAcquisitionWrapper plone at 0x7f1549d08af8>
               views: <ViewMapper - at 0x7f1549dd0a20>
               here: <ImplicitAcquisitionWrapper plone at 0x7f1549d08af8>
               container: <ImplicitAcquisitionWrapper plone at 0x7f1549d08af8>
               root: <ImplicitAcquisitionWrapper  at 0x7f1549e7c798>
               traverse_subpath: <list - at 0x7f1549d8dc08>
               user: <ImplicitAcquisitionWrapper - at 0x7f1549d836c0>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f1549dc4548>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f1549d3a488>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_imagescales.ImageReferenceDXTestCase.test_image_scale_reference_creation

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f1549cc0160>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f1549d75390>
               context: <ImplicitAcquisitionWrapper plone at 0x7f1549ce33a8>
               views: <ViewMapper - at 0x7f1549d7f0b8>
               here: <ImplicitAcquisitionWrapper plone at 0x7f1549ce33a8>
               container: <ImplicitAcquisitionWrapper plone at 0x7f1549ce33a8>
               root: <ImplicitAcquisitionWrapper  at 0x7f1549d56e58>
               traverse_subpath: <list - at 0x7f1549c5c4c8>
               user: <ImplicitAcquisitionWrapper - at 0x7f1549c5b480>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f1549c40488>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f1549c56488>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_imagescales.ImageReferenceDXTestCase.test_image_tag_reference_creation

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f1549c1dc50>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f1549c234a8>
               context: <ImplicitAcquisitionWrapper plone at 0x7f1549b44630>
               views: <ViewMapper - at 0x7f1549c0ddd8>
               here: <ImplicitAcquisitionWrapper plone at 0x7f1549b44630>
               container: <ImplicitAcquisitionWrapper plone at 0x7f1549b44630>
               root: <ImplicitAcquisitionWrapper  at 0x7f1549b5b3f0>
               traverse_subpath: <list - at 0x7f1549bc9b48>
               user: <ImplicitAcquisitionWrapper - at 0x7f1549b7ab40>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f1549c30c88>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f1549b41ea0>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_references.ReferenceGenerationDXTestCase.test_broken_references

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f1549bb6be0>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f1549b05e48>
               context: <ImplicitAcquisitionWrapper plone at 0x7f1549b2e828>
               views: <ViewMapper - at 0x7f1549b05e80>
               here: <ImplicitAcquisitionWrapper plone at 0x7f1549b2e828>
               container: <ImplicitAcquisitionWrapper plone at 0x7f1549b2e828>
               root: <ImplicitAcquisitionWrapper  at 0x7f1549b8e360>
               traverse_subpath: <list - at 0x7f1549aa4348>
               user: <ImplicitAcquisitionWrapper - at 0x7f1549a9b900>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f1549a8e248>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f1549b1eea0>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_references.ReferenceGenerationDXTestCase.test_delete_confirmation_for_any_reference

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f1549a661d0>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f1549a6c780>
               context: <ImplicitAcquisitionWrapper plone at 0x7f15499a5fc0>
               views: <ViewMapper - at 0x7f1549a6cf28>
               here: <ImplicitAcquisitionWrapper plone at 0x7f15499a5fc0>
               container: <ImplicitAcquisitionWrapper plone at 0x7f15499a5fc0>
               root: <ImplicitAcquisitionWrapper  at 0x7f1549ae5ab0>
               traverse_subpath: <list - at 0x7f1549a16b48>
               user: <ImplicitAcquisitionWrapper - at 0x7f1549a150d8>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f1549a10c08>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f15499a66a8>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_references.ReferenceGenerationDXTestCase.test_is_linked

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f1549893588>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f15498b00b8>
               context: <ImplicitAcquisitionWrapper plone at 0x7f1549925480>
               views: <ViewMapper - at 0x7f1549896048>
               here: <ImplicitAcquisitionWrapper plone at 0x7f1549925480>
               container: <ImplicitAcquisitionWrapper plone at 0x7f1549925480>
               root: <ImplicitAcquisitionWrapper  at 0x7f1549905798>
               traverse_subpath: <list - at 0x7f15498bcd08>
               user: <ImplicitAcquisitionWrapper - at 0x7f154994b558>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f154994ffc8>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f1549921620>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_references.ReferenceGenerationDXTestCase.test_link_extraction_easy

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f15497921d0>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f15497876a0>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154981e5a0>
               views: <ViewMapper - at 0x7f1549792898>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154981e5a0>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154981e5a0>
               root: <ImplicitAcquisitionWrapper  at 0x7f15498d35e8>
               traverse_subpath: <list - at 0x7f154984a748>
               user: <ImplicitAcquisitionWrapper - at 0x7f154983e4c8>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f1549841fc8>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f154983f0d0>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_references.ReferenceGenerationDXTestCase.test_link_extraction_more_complex

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f1549681198>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f154968c6d8>
               context: <ImplicitAcquisitionWrapper plone at 0x7f15497113a8>
               views: <ViewMapper - at 0x7f1549681c18>
               here: <ImplicitAcquisitionWrapper plone at 0x7f15497113a8>
               container: <ImplicitAcquisitionWrapper plone at 0x7f15497113a8>
               root: <ImplicitAcquisitionWrapper  at 0x7f1549708d38>
               traverse_subpath: <list - at 0x7f1549741808>
               user: <ImplicitAcquisitionWrapper - at 0x7f1549738480>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f154986c408>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f15497dac80>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_references.ReferenceGenerationDXTestCase.test_referal_to_private_files

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f15496f7940>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f154958b2e8>
               context: <ImplicitAcquisitionWrapper plone at 0x7f154ae33318>
               views: <ViewMapper - at 0x7f1549d7f898>
               here: <ImplicitAcquisitionWrapper plone at 0x7f154ae33318>
               container: <ImplicitAcquisitionWrapper plone at 0x7f154ae33318>
               root: <ImplicitAcquisitionWrapper  at 0x7f15495a22d0>
               traverse_subpath: <list - at 0x7f15627ff508>
               user: <ImplicitAcquisitionWrapper - at 0x7f154a5561b0>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f154a1ea9c8>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f1549da7ea0>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_references.ReferenceGenerationDXTestCase.test_reference_orthogonality

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154950b898>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f1549520cc0>
               context: <ImplicitAcquisitionWrapper plone at 0x7f15495f3240>
               views: <ViewMapper - at 0x7f154a33f2b0>
               here: <ImplicitAcquisitionWrapper plone at 0x7f15495f3240>
               container: <ImplicitAcquisitionWrapper plone at 0x7f15495f3240>
               root: <ImplicitAcquisitionWrapper  at 0x7f15495c8360>
               traverse_subpath: <list - at 0x7f154960ff08>
               user: <ImplicitAcquisitionWrapper - at 0x7f1549621318>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f15495218c8>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f15495f1620>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_references.ReferenceGenerationDXTestCase.test_relative_upwards_link_generates_matching_reference

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f15494e3fd0>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f15494f5630>
               context: <ImplicitAcquisitionWrapper plone at 0x7f15493fb360>
               views: <ViewMapper - at 0x7f15493d5128>
               here: <ImplicitAcquisitionWrapper plone at 0x7f15493fb360>
               container: <ImplicitAcquisitionWrapper plone at 0x7f15493fb360>
               root: <ImplicitAcquisitionWrapper  at 0x7f15493deaf8>
               traverse_subpath: <list - at 0x7f154957c388>
               user: <ImplicitAcquisitionWrapper - at 0x7f154949e900>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f15494a1908>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f15494a20d0>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.linkintegrity.tests.test_references.ReferenceGenerationDXTestCase.test_unicode_links

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

 - Expression: "python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class)"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 68: col 53)
 - Source:     ... python:image_scale.tag(item, 'image', scale=thumb_scale_list, css_class=img_class) ...
                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Expression: "provider:plone.abovecontentbody"
 - Filename:   ... one/Products/CMFPlone/browser/templates/main_template.pt
 - Location:   (line 102: col 70)
 - Source:     ... 
                                     ^
 - Expression: "context/main_template/macros/master"
 - Filename:   ... ypes/plone/app/contenttypes/browser/templates/listing.pt
 - Location:   (line 6: col 21)
 - Source:     ... etal:use-macro="context/main_template/macros/master"
                                   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
 - Arguments:  template: <ViewPageTemplateFile - at 0x7f15600cb898>
               options: {...} (0)
               args: <tuple - at 0x7f157e28d048>
               nothing: <NoneType - at 0x55dccbdaeee0>
               modules: <_SecureModuleImporter - at 0x7f157523fd30>
               request: <WSGIRequest - at 0x7f154942c208>
               view: <SimpleViewClass from /home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.contenttypes/plone/app/contenttypes/browser/templates/listing.pt listing_view at 0x7f15494314a8>
               context: <ImplicitAcquisitionWrapper plone at 0x7f15493bc120>
               views: <ViewMapper - at 0x7f1549431710>
               here: <ImplicitAcquisitionWrapper plone at 0x7f15493bc120>
               container: <ImplicitAcquisitionWrapper plone at 0x7f15493bc120>
               root: <ImplicitAcquisitionWrapper  at 0x7f1549419948>
               traverse_subpath: <list - at 0x7f1549300208>
               user: <ImplicitAcquisitionWrapper - at 0x7f15493241f8>
               default: <object - at 0x7f157e287990>
               repeat: {...} (0)
               loop: {...} (1)
               wrapped_repeat: <SafeMapping - at 0x7f15493208c8>
               target_language: <NoneType - at 0x55dccbdaeee0>
               translate: <function translate at 0x7f15493acd08>
               macroname: master

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/.buildout/eggs/plone.app.linkintegrity-3.3.7-py3.6.egg/plone/app/linkintegrity/tests/base.py", line 37, in setUp
    self.browser.open(self.portal.absolute_url())
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 280, in _processRequest
    resp = make_request(reqargs)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 254, in make_request
    return self.testapp.get(url, **args)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 331, in get
    expect_errors=expect_errors)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 94, in do_request
    expect_errors)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/app.py", line 625, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1309, in send
    application, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/WebOb-1.8.2-py3.6.egg/webob/request.py", line 1277, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/WebTest-2.0.29-py3.6.egg/webtest/lint.py", line 200, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 270, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 210, in publish
    bind=1)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/ZPublisher/WSGIPublisher.py", line 57, in call_object
    return obj(*args)
  File "/home/jenkins/.buildout/eggs/zope.browserpage-4.2.0-py3.6.egg/zope/browserpage/simpleviewclass.py", line 41, in __call__
    return self.index(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 125, in __call__
    return self.__func__(__self__, *args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/Five/browser/pagetemplatefile.py", line 60, in __call__
    sourceAnnotations=getattr(debug_flags, 'sourceAnnotations', 0),
  File "/home/jenkins/.buildout/eggs/zope.pagetemplate-4.3.0-py3.6.egg/zope/pagetemplate/pagetemplate.py", line 134, in pt_render
    strictinsert=0, sourceAnnotations=sourceAnnotations
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/Zope/src/Products/PageTemplates/engine.py", line 85, in __call__
    return self.template.render(**kwargs)
  File "/home/jenkins/.buildout/eggs/z3c.pt-3.1.0-py3.6.egg/z3c/pt/pagetemplate.py", line 158, in render
    return base_renderer(**context)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/zpt/template.py", line 297, in render
    return super(PageTemplate, self).render(**_kw)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 203, in render
    raise_with_traceback(exc, tb)
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/utils.py", line 75, in raise_with_traceback
    raise exc
  File "/home/jenkins/.buildout/eggs/Chameleon-3.4-py3.6.egg/chameleon/template.py", line 183, in render
    self._render(stream, econtext, rcontext)
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1743, in render
  File "aa7f1fd728673850287a2134b05396cf.py", line 683, in render_master
  File "aa7f1fd728673850287a2134b05396cf.py", line 1274, in render_content
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1733, in __fill_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 111, in render_content_core
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 409, in render_listing
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 707, in render_entries
  File "c3f60dd4f3757ad2c77b33163c785751.py", line 1156, in render_listitem
  File "/home/jenkins/.buildout/eggs/plone.memoize-1.2.3-py3.6.egg/plone/memoize/volatile.py", line 73, in replacement
    cached_value = cache[key] = fun(*args, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 522, in tag
    tag = images.tag(fieldname, **kwargs)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 501, in tag
    scale = self.scale(fieldname, scale, height, width, direction)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 433, in scale
    **parameters
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.scale/plone/scale/storage.py", line 210, in scale
    result = scaling_factory(**parameters)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/scaling.py", line 273, in __call__
    filename=orig_value.filename,
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.app.users.tests.test_schema_types.TestSchema.test_schema_types

Error Message:
HTTP Error 500: Internal Server Error

Stack Trace:
HTTP Error 500: Internal Server Error

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.users/plone/app/users/tests/test_schema_types.py", line 129, in test_schema_types
    self.browser.getControl('Save').click()
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 778, in click
    self.browser._clickSubmit(self._form, self._control)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 275, in _clickSubmit
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 289, in _processRequest
    self._checkStatus()
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 297, in _checkStatus
    raise HTTPError(self.url, code, msg, [], None)


FAILED:  plone.app.versioningbehavior.tests.test_browser.DownloadViewTestCase.test_should_download_file_correctly

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.versioningbehavior/plone/app/versioningbehavior/tests/test_browser.py", line 30, in setUp
    file=NamedBlobFile(filename=u'object_1_file.txt', data='Object 1 Data'),
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.versioningbehavior.tests.test_browser.VersionViewTestCase.test_call

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.versioningbehavior/plone/app/versioningbehavior/tests/test_browser.py", line 30, in setUp
    file=NamedBlobFile(filename=u'object_1_file.txt', data='Object 1 Data'),
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.versioningbehavior.tests.test_browser.VersionViewTestCase.test_convert_download_links

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.versioningbehavior/plone/app/versioningbehavior/tests/test_browser.py", line 30, in setUp
    file=NamedBlobFile(filename=u'object_1_file.txt', data='Object 1 Data'),
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.versioningbehavior.tests.test_browser.VersionViewTestCase.test_get_download_version_link

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.versioningbehavior/plone/app/versioningbehavior/tests/test_browser.py", line 30, in setUp
    file=NamedBlobFile(filename=u'object_1_file.txt', data='Object 1 Data'),
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.versioningbehavior.tests.test_browser.VersionViewTestCase.test_version_view_is_registered

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.versioningbehavior/plone/app/versioningbehavior/tests/test_browser.py", line 30, in setUp
    file=NamedBlobFile(filename=u'object_1_file.txt', data='Object 1 Data'),
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.versioningbehavior.tests.test_modifiers.TestModifiers.testCloneNamedFileBlobsInBehavior

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.versioningbehavior/plone/app/versioningbehavior/tests/test_modifiers.py", line 123, in testCloneNamedFileBlobsInBehavior
    filename=u'test.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.versioningbehavior.tests.test_modifiers.TestModifiers.testCloneNamedFileBlobsInSchema

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.versioningbehavior/plone/app/versioningbehavior/tests/test_modifiers.py", line 82, in testCloneNamedFileBlobsInSchema
    file1.file = NamedBlobFile('dummy test data', filename=u'test.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.versioningbehavior.tests.test_modifiers.TestModifiers.testCloneNamedFileBlobsOnCloneModifiers

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.versioningbehavior/plone/app/versioningbehavior/tests/test_modifiers.py", line 155, in testCloneNamedFileBlobsOnCloneModifiers
    file1.file = NamedBlobFile('dummy test data', filename=u'test.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.app.versioningbehavior.tests.test_modifiers.TestModifiers.testCloneNamedFileBlobsWithNoFile

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.versioningbehavior/plone/app/versioningbehavior/tests/test_modifiers.py", line 192, in testCloneNamedFileBlobsWithNoFile
    file1.file = NamedBlobFile('dummy test data', filename=u'test.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.namedfile.tests.test_blobfile.TestImage.testConstructor

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_blobfile.py", line 75, in testConstructor
    file = self._makeImage('Data')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_blobfile.py", line 67, in _makeImage
    return NamedBlobImage(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.namedfile.tests.test_blobfile.TestImage.testDataMutatorWithLargeHeader

Error Message:
must be str, not bytes

Stack Trace:
must be str, not bytes

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_blobfile.py", line 101, in testDataMutatorWithLargeHeader
    '\x00' * IMAGE_INFO_BYTES * 2 +


FAILED:  plone.namedfile.tests.test_blobfile.TestImage.testEmpty

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_blobfile.py", line 70, in testEmpty
    file = self._makeImage()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_blobfile.py", line 67, in _makeImage
    return NamedBlobImage(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.namedfile.tests.test_blobfile.TestImage.testMutators

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_blobfile.py", line 80, in testMutators
    image = self._makeImage()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_blobfile.py", line 67, in _makeImage
    return NamedBlobImage(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.namedfile.tests.test_blobfile.TestImageFunctional.testCopyBlobs

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_blobfile.py", line 117, in testCopyBlobs
    file = NamedBlobFile()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.namedfile.tests.test_image.TestImage.testConstructor

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_image.py", line 45, in testConstructor
    file_img = self._makeImage('Data')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_image.py", line 37, in _makeImage
    return NamedImage(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_image.TestImage.testEmpty

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_image.py", line 40, in testEmpty
    file_img = self._makeImage()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_image.py", line 37, in _makeImage
    return NamedImage(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_image.TestImage.testImageValidation

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_image.py", line 93, in testImageValidation
    image = self._makeImage()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_image.py", line 37, in _makeImage
    return NamedImage(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_image.TestImage.testMutators

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_image.py", line 50, in testMutators
    image = self._makeImage()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_image.py", line 37, in _makeImage
    return NamedImage(*args, **kw)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_image.TestImage.test_get_contenttype

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_image.py", line 69, in test_get_contenttype
    contentType='image/gif')),
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testAvailableSizes

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testCreateHighPixelDensityScale

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testCreateHighPixelDensityScaleWithoutData

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testCreateScale

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testCreateScaleWithoutData

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testCustomSizeChange

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testGetAvailableSizes

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testGetHighPixelDensityScaleByName

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testGetImageSize

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testGetOriginalScaleTag

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testGetRetinaScaleByHeightOnly

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testGetRetinaScaleByWidthAndHeight

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testGetRetinaScaleByWidthOnly

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testGetScaleByName

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testGetUnknownScale

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testGuardedAccess

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testOversizedHighPixelDensityScale

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testScaleInvalidation

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testScaleOnItemWithNonASCIITitle

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testScaleOnItemWithUnicodeTitle

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageScalingTests.testScaledJpegImageQuality

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 68, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageTraverseTests.testCustomSizeChange

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 354, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageTraverseTests.testCustomSizes

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 354, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageTraverseTests.testGuardedAccess

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 354, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageTraverseTests.testImageThumb

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 354, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling.ImageTraverseTests.testScaleInvalidation

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling.py", line 354, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.testGuardedAccess

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.testHeadRequestMethod

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.testPublishCustomSizeViaName

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.testPublishCustomSizeViaUID

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.testPublishFTPScaleViaUID

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.testPublishScaleViaUID

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.testPublishScaleWithInvalidScale

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.testPublishScaleWithInvalidUID

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.testPublishThumbViaName

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.testPublishThumbViaUID

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.testPublishWebDavScaleViaUID

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.test_getAvailableSizesWithInvalidScaleMethod

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.test_getAvailableSizesWithInvalidScaleProperty

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_scaling_functional.ImagePublisherTests.test_getImageSizeWithInvalidScale

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_scaling_functional.py", line 57, in setUp
    item.image = NamedImage(data, 'image/png', u'image.png')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.namedfile.tests.test_storable.TestStorable.test_filechunk_storable

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_storable.py", line 46, in test_filechunk_storable
    filename=u'image.gif')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.namedfile.tests.test_storable.TestStorable.test_pdata_storable

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_storable.py", line 37, in test_pdata_storable
    fi = NamedBlobImage(pdata, filename=u'image.gif')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.namedfile.tests.test_storable.TestStorable.test_str_storable

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/tests/test_storable.py", line 41, in test_str_storable
    fi = NamedBlobImage(getFile('image.gif').read(), filename=u'image.gif')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_absolute_path

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_absolutizes_uncaptioned_image

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_bad_uid

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_external_url

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_handles_non_ascii

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_handles_unquoted_attributes

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_in_news_item

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_preserves_custom_attributes

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_preserves_existing_links

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_relative_path

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_relative_path_private_folder

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_relative_path_scale

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_resolveuid

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_resolveuid_new_scale

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_resolveuid_new_scale_plone_namedfile

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_resolveuid_no_scale

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_resolveuid_no_scale_plone_namedfile

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_resolveuid_scale

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_unknown_scale

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_image_captioning_unknown_scale_images_view

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_no_change_when_a_in_script

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_no_change_when_img_in_script

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_parsing_minimal

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_parsing_preserves_CDATA

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_parsing_preserves_newlines

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_relative_links_to_absolute

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_uid_plus_subpath

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_uids_abs_path

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_uids_entities

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_uids_fragment

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_uids_handles_junk

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_uids_handles_mailto

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_uids_handles_tel

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_uids_in_image_maps

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_uids_in_links

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_uids_non_AT_content

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_uids_relative_link

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_uids_with_bigU

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolve_unresolvable_uids

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolveuid_view

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolveuid_view_bad_uuid

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolveuid_view_querystring

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_resolveuid_view_subpath

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_singleton_elements

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_uuidToObject

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_uuidToURL

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.outputfilters.tests.test_resolveuid_and_caption.ResolveUIDAndCaptionFilterIntegrationTestCase.test_uuidToURL_permission

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 601, in run
    self.setUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.app.testing/src/plone/app/testing/bbb.py", line 62, in setUp
    self.afterSetUp()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 98, in afterSetUp
    image.image = dummy_image()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.outputfilters/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 28, in dummy_image
    return NamedBlobImage(data=data, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.protect.tests.testAuto.AutoCSRFProtectTests.test_adds_csrf_protection_for_no_action

Error Message:
name '_authenticator'

Stack Trace:
name '_authenticator'
available items:
  <SubmitControl(submit1=submit1)>

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.protect/plone/protect/tests/testAuto.py", line 42, in test_adds_csrf_protection_for_no_action
    form.getControl(name="_authenticator")
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1295, in getControl
    controlFormTupleRepr, available)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1331, in disambiguate
    raise LookupError(msg)


FAILED:  plone.protect.tests.testAuto.AutoCSRFProtectTests.test_adds_csrf_protection_for_relative_path

Error Message:
name '_authenticator'

Stack Trace:
name '_authenticator'
available items:
  <SubmitControl(submit7=submit7)>

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.protect/plone/protect/tests/testAuto.py", line 37, in test_adds_csrf_protection_for_relative_path
    form.getControl(name="_authenticator")
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1295, in getControl
    controlFormTupleRepr, available)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1331, in disambiguate
    raise LookupError(msg)


FAILED:  plone.protect.tests.testAuto.AutoCSRFProtectTests.test_adds_csrf_protection_for_scheme_relative_same_domain

Error Message:
name '_authenticator'

Stack Trace:
name '_authenticator'
available items:
  <SubmitControl(submit5=submit5)>

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.protect/plone/protect/tests/testAuto.py", line 32, in test_adds_csrf_protection_for_scheme_relative_same_domain
    form.getControl(name="_authenticator")
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1295, in getControl
    controlFormTupleRepr, available)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1331, in disambiguate
    raise LookupError(msg)


FAILED:  plone.protect.tests.testAuto.AutoCSRFProtectTests.test_adds_csrf_protection_input

Error Message:
False is not true

Stack Trace:
False is not true

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.protect/plone/protect/tests/testAuto.py", line 27, in test_adds_csrf_protection_input
    self.assertTrue('name="_authenticator"' in self.browser.contents)
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 682, in assertTrue
    raise self.failureException(msg)


FAILED:  plone.protect.tests.testAuto.AutoCSRFProtectTests.test_forbidden_raised_if_auth_failure

Error Message:
name '_authenticator'

Stack Trace:
name '_authenticator'
available items:
  <SubmitControl(submit1=submit1)>

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.protect/plone/protect/tests/testAuto.py", line 80, in test_forbidden_raised_if_auth_failure
    getControl(name="_authenticator").value = 'foobar'
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1295, in getControl
    controlFormTupleRepr, available)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1331, in disambiguate
    raise LookupError(msg)


FAILED:  plone.protect.tests.testAuto.TestRoot.test_adds_csrf_protection_for_no_action

Error Message:
name '_authenticator'

Stack Trace:
name '_authenticator'
available items:
  <SubmitControl(submit1=submit1)>

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.protect/plone/protect/tests/testAuto.py", line 42, in test_adds_csrf_protection_for_no_action
    form.getControl(name="_authenticator")
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1295, in getControl
    controlFormTupleRepr, available)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1331, in disambiguate
    raise LookupError(msg)


FAILED:  plone.protect.tests.testAuto.TestRoot.test_adds_csrf_protection_for_relative_path

Error Message:
name '_authenticator'

Stack Trace:
name '_authenticator'
available items:
  <SubmitControl(submit7=submit7)>

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.protect/plone/protect/tests/testAuto.py", line 37, in test_adds_csrf_protection_for_relative_path
    form.getControl(name="_authenticator")
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1295, in getControl
    controlFormTupleRepr, available)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1331, in disambiguate
    raise LookupError(msg)


FAILED:  plone.protect.tests.testAuto.TestRoot.test_adds_csrf_protection_for_scheme_relative_same_domain

Error Message:
name '_authenticator'

Stack Trace:
name '_authenticator'
available items:
  <SubmitControl(submit5=submit5)>

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.protect/plone/protect/tests/testAuto.py", line 32, in test_adds_csrf_protection_for_scheme_relative_same_domain
    form.getControl(name="_authenticator")
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1295, in getControl
    controlFormTupleRepr, available)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1331, in disambiguate
    raise LookupError(msg)


FAILED:  plone.protect.tests.testAuto.TestRoot.test_adds_csrf_protection_input

Error Message:
False is not true

Stack Trace:
False is not true

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.protect/plone/protect/tests/testAuto.py", line 27, in test_adds_csrf_protection_input
    self.assertTrue('name="_authenticator"' in self.browser.contents)
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 682, in assertTrue
    raise self.failureException(msg)


FAILED:  plone.protect.tests.testAuto.TestRoot.test_forbidden_raised_if_auth_failure

Error Message:
name '_authenticator'

Stack Trace:
name '_authenticator'
available items:
  <SubmitControl(submit1=submit1)>

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.protect/plone/protect/tests/testAuto.py", line 80, in test_forbidden_raised_if_auth_failure
    getControl(name="_authenticator").value = 'foobar'
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1295, in getControl
    controlFormTupleRepr, available)
  File "/home/jenkins/.buildout/eggs/zope.testbrowser-5.2.4-py3.6.egg/zope/testbrowser/browser.py", line 1331, in disambiguate
    raise LookupError(msg)


FAILED:  plone.rest.tests.test_dexterity.TestDexterityServiceEndpoints.test_dexterity_file_get

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.rest/src/plone/rest/tests/test_dexterity.py", line 185, in test_dexterity_file_get
    filename=u'file.pdf'
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.rest.tests.test_dexterity.TestDexterityServiceEndpoints.test_dexterity_image_get

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.rest/src/plone/rest/tests/test_dexterity.py", line 213, in test_dexterity_image_get
    filename=u'image.png'
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.rest.tests.test_dexterity.TestDexterityServiceEndpoints.test_dexterity_news_item_get

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.rest/src/plone/rest/tests/test_dexterity.py", line 123, in test_dexterity_news_item_get
    filename=u'image.png'
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.restapi.tests.test_content_patch.TestContentPatch.test_patch_image_with_the_contents_of_the_get_preserves_image

Error Message:
'id'

Stack Trace:
'id'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_content_patch.py", line 157, in test_patch_image_with_the_contents_of_the_get_preserves_image
    image_url = self.portal[response['id']].absolute_url()


FAILED:  plone.restapi.tests.test_content_post.TestFolderCreate.test_post_without_id_creates_id_from_filename

Error Message:
201 != 500

Stack Trace:
201 != 500

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_content_post.py", line 127, in test_post_without_id_creates_id_from_filename
    self.assertEqual(201, response.status_code)
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 829, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
    raise self.failureException(msg)


FAILED:  plone.restapi.tests.test_documentation.TestDocumentation.test_documentation_file

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_documentation.py", line 347, in test_documentation_file
    filename=u'file.pdf'
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.restapi.tests.test_documentation.TestDocumentation.test_documentation_image

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_documentation.py", line 367, in test_documentation_image
    filename=u'image.png'
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.restapi.tests.test_documentation.TestDocumentation.test_documentation_news_item

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_documentation.py", line 292, in test_documentation_news_item
    filename=u'image.png'
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.restapi.tests.test_dxfield_deserializer.TestDXFieldDeserializer.test_namedblobfile_deserialization_returns_namedblobfile

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 292, in test_namedblobfile_deserialization_returns_namedblobfile
    u'data': u'Spam and eggs!',
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 57, in deserialize
    return deserializer(value)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/deserializer/dxfields.py", line 238, in __call__
    data=data, contentType=content_type, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.restapi.tests.test_dxfield_deserializer.TestDXFieldDeserializer.test_namedblobimage_deserialization_returns_namedblobimage

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 302, in test_namedblobimage_deserialization_returns_namedblobimage
    u'content-type': u'image/gif',
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 57, in deserialize
    return deserializer(value)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/deserializer/dxfields.py", line 238, in __call__
    data=data, contentType=content_type, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.restapi.tests.test_dxfield_deserializer.TestDXFieldDeserializer.test_namedfield_deserialization_decodes_value

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 254, in test_namedfield_deserialization_decodes_value
    u'encoding': u'base64',
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 57, in deserialize
    return deserializer(value)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/deserializer/dxfields.py", line 238, in __call__
    data=data, contentType=content_type, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.restapi.tests.test_dxfield_deserializer.TestDXFieldDeserializer.test_namedfield_deserialization_sets_content_type

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 261, in test_namedfield_deserialization_sets_content_type
    u'content-type': u'text/plain',
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 57, in deserialize
    return deserializer(value)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/deserializer/dxfields.py", line 238, in __call__
    data=data, contentType=content_type, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.restapi.tests.test_dxfield_deserializer.TestDXFieldDeserializer.test_namedfield_deserialization_sets_filename

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 268, in test_namedfield_deserialization_sets_filename
    u'filename': u'doc.txt',
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 57, in deserialize
    return deserializer(value)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/deserializer/dxfields.py", line 238, in __call__
    data=data, contentType=content_type, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.restapi.tests.test_dxfield_deserializer.TestDXFieldDeserializer.test_namedfield_deserializer_validates_value

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 439, in test_namedfield_deserializer_validates_value
    u'content-type': u'text/plain',
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 57, in deserialize
    return deserializer(value)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/deserializer/dxfields.py", line 238, in __call__
    data=data, contentType=content_type, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.restapi.tests.test_dxfield_deserializer.TestDXFieldDeserializer.test_namedfile_deserialization_returns_namedfile

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 274, in test_namedfile_deserialization_returns_namedfile
    u'data': u'Spam and eggs!',
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 57, in deserialize
    return deserializer(value)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/deserializer/dxfields.py", line 238, in __call__
    data=data, contentType=content_type, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.restapi.tests.test_dxfield_deserializer.TestDXFieldDeserializer.test_namedimage_deserialization_returns_namedimage

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 284, in test_namedimage_deserialization_returns_namedimage
    u'content-type': u'image/gif',
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_deserializer.py", line 57, in deserialize
    return deserializer(value)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/deserializer/dxfields.py", line 238, in __call__
    data=data, contentType=content_type, filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.restapi.tests.test_dxfield_serializer.TestDexterityFieldSerializing.test_namedblobfile_field_serialization_returns_dict

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_serializer.py", line 256, in test_namedblobfile_field_serialization_returns_dict
    filename=u'test.txt'))
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.restapi.tests.test_dxfield_serializer.TestDexterityFieldSerializing.test_namedblobimage_field_serialization_returns_dict

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_serializer.py", line 280, in test_namedblobimage_field_serialization_returns_dict
    filename=u'1024x768.gif'
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.restapi.tests.test_dxfield_serializer.TestDexterityFieldSerializing.test_namedfile_field_serialization_returns_dict

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_serializer.py", line 179, in test_namedfile_field_serialization_returns_dict
    filename=u'test.txt'))
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.restapi.tests.test_dxfield_serializer.TestDexterityFieldSerializing.test_namedimage_field_serialization_returns_dict

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_dxfield_serializer.py", line 202, in test_namedimage_field_serialization_returns_dict
    filename=u'1024x768.gif'
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 277, in __init__
    self._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 295, in _setData
    super(NamedImage, self)._setData(data)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.restapi.tests.test_serializer.TestSerializeToJsonAdapter.test_serialize_file

Error Message:
'bytes' object has no attribute 'seek'

Stack Trace:
'bytes' object has no attribute 'seek'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_serializer.py", line 248, in test_serialize_file
    filename=u'test.txt')
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 169, in __init__
    self.data = data
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 200, in _setData
    seek = data.seek


FAILED:  plone.restapi.tests.test_serializer.TestSerializeToJsonAdapter.test_serialize_image

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_serializer.py", line 273, in test_serialize_image
    filename=u'image.png'
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.restapi.tests.test_services.TestTraversal.test_get_news_item

Error Message:
a bytes-like object is required, not 'str'

Stack Trace:
a bytes-like object is required, not 'str'

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_services.py", line 102, in test_get_news_item
    filename=u'image.png'
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 378, in __init__
    filename=filename)
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.namedfile/plone/namedfile/file.py", line 323, in __init__
    f.write('')


FAILED:  plone.restapi.tests.test_tus.TestTUS.test_tus_can_replace_pdf_file

Error Message:
500 != 204

Stack Trace:
500 != 204

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_tus.py", line 396, in test_tus_can_replace_pdf_file
    self.assertEqual(response.status_code, 204)
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 829, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
    raise self.failureException(msg)


FAILED:  plone.restapi.tests.test_tus.TestTUS.test_tus_can_upload_pdf_file

Error Message:
500 != 204

Stack Trace:
500 != 204

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_tus.py", line 339, in test_tus_can_upload_pdf_file
    self.assertEqual(response.status_code, 204)
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 829, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
    raise self.failureException(msg)


FAILED:  plone.restapi.tests.test_tus.TestTUS.test_tus_patch_non_primary_field

Error Message:
204 != 500

Stack Trace:
204 != 500

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_tus.py", line 280, in test_tus_patch_non_primary_field
    self.assertEqual(204, response.status_code)
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 829, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
    raise self.failureException(msg)


FAILED:  plone.restapi.tests.test_tus.TestTUS.test_tus_patch_on_not_existing_resource_returns_404

Error Message:
404 != 400

Stack Trace:
404 != 400

  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 59, in testPartExecutor
    yield
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 605, in run
    testMethod()
  File "/home/jenkins/workspace/plone-5.2-python-3.6/src/plone.restapi/src/plone/restapi/tests/test_tus.py", line 226, in test_tus_patch_on_not_existing_resource_returns_404
    self.assertEqual(404, response.status_code)
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 829, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/srv/python3.6/lib/python3.6/unittest/case.py", line 822, in _baseAssertEqual
    raise self.failureException(msg)


More information about the Testbot mailing list