[Testbot] Plone 6.0 - Python 3.8 - Build # 34 - Still Failing!

jenkins at plone.org jenkins at plone.org
Mon Feb 17 10:34:34 UTC 2020


Plone 6.0 - Python 3.8 - Build # 34 - Still Failing:

Check console output at https://jenkins.plone.org/job/plone-6.0-python-3.8/34/ to view the results.


Plone 6.0 - Python 3.8 - Build # 34 - Still Failing:

Check console output at https://jenkins.plone.org/job/plone-6.0-python-3.8/34/ to view the results.

Test Results:

10 tests failed.
FAILED:  Products.PlonePAS.utils.scale_image

Error Message:
Failed doctest test for Products.PlonePAS.utils.scale_image

Stack Trace:
Failed doctest test for Products.PlonePAS.utils.scale_image
  File "/home/jenkins/.buildout/eggs/cp38/Products.PlonePAS-6.0.5-py3.8.egg/Products/PlonePAS/utils.py", line 41, in scale_image

----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/cp38/Products.PlonePAS-6.0.5-py3.8.egg/Products/PlonePAS/utils.py", line 69, in Products.PlonePAS.utils.scale_image
Failed example:
    scale_image(invalid, (50, 50))
Expected:
    Traceback (most recent call last):
    ...
    OSError: cannot identify image file...
Got:
    Traceback (most recent call last):
      File "/srv/python3.8/lib/python3.8/doctest.py", line 1329, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest Products.PlonePAS.utils.scale_image[13]>", line 1, in <module>
        scale_image(invalid, (50, 50))
      File "/home/jenkins/.buildout/eggs/cp38/Products.PlonePAS-6.0.5-py3.8.egg/Products/PlonePAS/utils.py", line 142, in scale_image
        image = Image.open(image_file)
      File "/home/jenkins/.buildout/eggs/cp38/Pillow-7.0.0-py3.8-linux-x86_64.egg/PIL/Image.py", line 2796, in open
        raise ValueError(
    ValueError: StringIO cannot be used to open an image. Binary data must be used instead.
----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/cp38/Products.PlonePAS-6.0.5-py3.8.egg/Products/PlonePAS/utils.py", line 73, in Products.PlonePAS.utils.scale_image
Failed example:
    scale_image(sneaky, (50, 50))
Expected:
    Traceback (most recent call last):
    ...
    OSError: cannot identify image file...
Got:
    Traceback (most recent call last):
      File "/srv/python3.8/lib/python3.8/doctest.py", line 1329, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest Products.PlonePAS.utils.scale_image[14]>", line 1, in <module>
        scale_image(sneaky, (50, 50))
      File "/home/jenkins/.buildout/eggs/cp38/Products.PlonePAS-6.0.5-py3.8.egg/Products/PlonePAS/utils.py", line 142, in scale_image
        image = Image.open(image_file)
      File "/home/jenkins/.buildout/eggs/cp38/Pillow-7.0.0-py3.8-linux-x86_64.egg/PIL/Image.py", line 2796, in open
        raise ValueError(
    ValueError: StringIO cannot be used to open an image. Binary data must be used instead.


  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/srv/python3.8/lib/python3.8/doctest.py", line 2197, 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/.buildout/eggs/cp38/plone.formwidget.namedfile-2.0.10-py3.8.egg/plone/formwidget/namedfile/widget.rst", line 0

----------------------------------------------------------------------
File "/home/jenkins/.buildout/eggs/cp38/plone.formwidget.namedfile-2.0.10-py3.8.egg/plone/formwidget/namedfile/widget.rst", line 755, in widget.rst
Failed example:
    PIL.Image.open(six.BytesIO(content.image_field))
Expected:
    Traceback (most recent call last):
    ...
    OSError: cannot identify image file...
Got:
    Traceback (most recent call last):
      File "/srv/python3.8/lib/python3.8/doctest.py", line 1329, in __run
        exec(compile(example.source, filename, "single",
      File "<doctest widget.rst[264]>", line 1, in <module>
        PIL.Image.open(six.BytesIO(content.image_field))
      File "/home/jenkins/.buildout/eggs/cp38/Pillow-7.0.0-py3.8-linux-x86_64.egg/PIL/Image.py", line 2861, in open
        raise UnidentifiedImageError(
    PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7fa796984720>


  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/srv/python3.8/lib/python3.8/doctest.py", line 2197, in runTest
    raise self.failureException(self.format_failure(new.getvalue()))


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

Error Message:
Differences (ndiff with -expected +actual):

Stack Trace:
Differences (ndiff with -expected +actual):
      <a class="link" href="/xyzzy"><dl class="image-left captioned">
    - <dt><img alt="My caption" height="84" src="http://nohost/plone/image.jpg/@@images/...jpeg" title="Image" width="128"/></dt>
    ?                                    ^                                              ^^
    + <dt><img alt="My caption" height="85" src="http://nohost/plone/image.jpg/@@images/4a6b8ad6-a556-43c8-bedf-4a281cca0c35.jpeg" title="Image" width="128"/></dt>
    ?                                    ^                                              ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      <dd class="image-caption">My caption</dd>
      </dl>
      </a>

  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/home/jenkins/.buildout/eggs/cp38/plone.outputfilters-3.1.2-py3.8.egg/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 409, in test_image_captioning_preserves_existing_links
    self._assertTransformsTo(text_in, text_out)
  File "/home/jenkins/.buildout/eggs/cp38/plone.outputfilters-3.1.2-py3.8.egg/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 87, in _assertTransformsTo
    raise AssertionError(self.outputchecker.output_difference(


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

Error Message:
Differences (ndiff with -expected +actual):

Stack Trace:
Differences (ndiff with -expected +actual):
      <dl class="captioned">
    - <dt><a href="/plone/image.jpg" rel="lightbox"><img alt="My caption" height="84" src="http://nohost/plone/image.jpg/@@images/...jpeg" title="Image" width="128"/></a></dt>
    ?                                                                              ^^                                             ^^
    + <dt><a href="/plone/image.jpg" rel="lightbox"><img alt="My caption" height="85" src="http://nohost/plone/image.jpg/@@images/0a4890c6-f45a-451d-9564-e42584946ef1.jpeg" title="Image" width="128"/></a></dt>
    ?                                                                              ^^                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      <dd class="image-caption">My caption</dd>
    - </dl>+ </dl>
    ?      +


  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/home/jenkins/.buildout/eggs/cp38/plone.outputfilters-3.1.2-py3.8.egg/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 324, in test_image_captioning_relative_path_scale
    self._assertTransformsTo(text_in, text_out)
  File "/home/jenkins/.buildout/eggs/cp38/plone.outputfilters-3.1.2-py3.8.egg/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 87, in _assertTransformsTo
    raise AssertionError(self.outputchecker.output_difference(


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

Error Message:
Differences (ndiff with -expected +actual):

Stack Trace:
Differences (ndiff with -expected +actual):
      <dl class="captioned">
    - <dt><a href="/plone/image.jpg" rel="lightbox"><img alt="My caption" height="84" src="http://nohost/plone/image.jpg/@@images/...jpeg" title="Image" width="128"/></a></dt>
    ?                                                                              ^^                                             ^^
    + <dt><a href="/plone/image.jpg" rel="lightbox"><img alt="My caption" height="85" src="http://nohost/plone/image.jpg/@@images/336de4c9-9205-4512-a4a5-26ca1c2f953f.jpeg" title="Image" width="128"/></a></dt>
    ?                                                                              ^^                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      <dd class="image-caption">My caption</dd>
    - </dl>+ </dl>
    ?      +


  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/home/jenkins/.buildout/eggs/cp38/plone.outputfilters-3.1.2-py3.8.egg/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 348, in test_image_captioning_resolveuid_new_scale
    self._assertTransformsTo(text_in, text_out)
  File "/home/jenkins/.buildout/eggs/cp38/plone.outputfilters-3.1.2-py3.8.egg/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 87, in _assertTransformsTo
    raise AssertionError(self.outputchecker.output_difference(


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

Error Message:
Differences (ndiff with -expected +actual):

Stack Trace:
Differences (ndiff with -expected +actual):
      <dl class="captioned">
    - <dt><a href="/plone/image.jpg" rel="lightbox"><img alt="My caption" height="84" src="http://nohost/plone/image.jpg/@@images/...jpeg" title="Image" width="128"/></a></dt>
    ?                                                                              ^^                                             ^^
    + <dt><a href="/plone/image.jpg" rel="lightbox"><img alt="My caption" height="85" src="http://nohost/plone/image.jpg/@@images/6eb0b86d-708e-4003-8efc-efefb2647932.jpeg" title="Image" width="128"/></a></dt>
    ?                                                                              ^^                                             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
      <dd class="image-caption">My caption</dd>
    - </dl>+ </dl>
    ?      +


  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/home/jenkins/.buildout/eggs/cp38/plone.outputfilters-3.1.2-py3.8.egg/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 340, in test_image_captioning_resolveuid_scale
    self._assertTransformsTo(text_in, text_out)
  File "/home/jenkins/.buildout/eggs/cp38/plone.outputfilters-3.1.2-py3.8.egg/plone/outputfilters/tests/test_resolveuid_and_caption.py", line 87, in _assertTransformsTo
    raise AssertionError(self.outputchecker.output_difference(


FAILED:  plone.restapi.tests.test_serializer.TestSerializeToJsonAdapter.test_serialize_image

Error Message:
{'fil[162 chars]: {'listing': {'download': 'http://nohost/plon[655 chars]56}}} != {'fil[162 chars]: {'large': {'download': 'http://nohost/plone/[655 chars] 4}}}

Stack Trace:
{'fil[162 chars]: {'listing': {'download': 'http://nohost/plon[655 chars]56}}} != {'fil[162 chars]: {'large': {'download': 'http://nohost/plone/[655 chars] 4}}}
  {'content-type': 'image/png',
   'download': 'http://nohost/plone/image1/@@images/uuid_1.png',
   'filename': 'image.png',
   'height': 56,
   'scales': {'icon': {'download': 'http://nohost/plone/image1/@@images/uuid_1.png',
                       'height': 8,
                       'width': 32},
              'large': {'download': 'http://nohost/plone/image1/@@images/uuid_1.png',
                        'height': 56,
                        'width': 215},
              'listing': {'download': 'http://nohost/plone/image1/@@images/uuid_1.png',
                          'height': 4,
                          'width': 16},
              'mini': {'download': 'http://nohost/plone/image1/@@images/uuid_1.png',
                       'height': 52,
                       'width': 200},
              'preview': {'download': 'http://nohost/plone/image1/@@images/uuid_1.png',
                          'height': 56,
                          'width': 215},
              'thumb': {'download': 'http://nohost/plone/image1/@@images/uuid_1.png',
                        'height': 33,
                        'width': 128},
              'tile': {'download': 'http://nohost/plone/image1/@@images/uuid_1.png',
-                      'height': 16,
?                                 ^

+                      'height': 17,
?                                 ^

                       'width': 64}},
   'size': 1185,
   'width': 215}

  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/home/jenkins/workspace/plone-6.0-python-3.8/src/plone.restapi/src/plone/restapi/tests/test_serializer.py", line 274, in test_serialize_image
    self.assertEqual(
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 912, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 1211, in assertDictEqual
    self.fail(self._formatMessage(msg, standardMsg))
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 753, in fail
    raise self.failureException(msg)


FAILED:  plone.scale.tests.test_scale.ScalingTests.testThumbnailHeightNone

Error Message:
Tuples differ: (42, 52) != (42, 51)

Stack Trace:
Tuples differ: (42, 52) != (42, 51)

First differing element 1:
52
51

- (42, 52)
?       ^

+ (42, 51)
?       ^


  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/home/jenkins/.buildout/eggs/cp38/plone.scale-3.0.3-py3.8.egg/plone/scale/tests/test_scale.py", line 202, in testThumbnailHeightNone
    self.assertEqual(scaleImage(PNG, 42, None, "thumbnail")[2], (42, 51))
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 912, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 1129, in assertTupleEqual
    self.assertSequenceEqual(tuple1, tuple2, msg, seq_type=tuple)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 1100, in assertSequenceEqual
    self.fail(msg)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 753, in fail
    raise self.failureException(msg)


FAILED:  plone.scale.tests.test_scale.ScalingTests.testThumbnailWidthNone

Error Message:
Tuples differ: (42, 51) != (41, 51)

Stack Trace:
Tuples differ: (42, 51) != (41, 51)

First differing element 0:
42
41

- (42, 51)
?   ^

+ (41, 51)
?   ^


  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/home/jenkins/.buildout/eggs/cp38/plone.scale-3.0.3-py3.8.egg/plone/scale/tests/test_scale.py", line 205, in testThumbnailWidthNone
    self.assertEqual(scaleImage(PNG, None, 51, "thumbnail")[2], (41, 51))
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 912, in assertEqual
    assertion_func(first, second, msg=msg)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 1129, in assertTupleEqual
    self.assertSequenceEqual(tuple1, tuple2, msg, seq_type=tuple)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 1100, in assertSequenceEqual
    self.fail(msg)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 753, in fail
    raise self.failureException(msg)


FAILED:  Products.CMFQuickInstallerTool.tests.test_browser.QIBrowserTest.test_installProducts_post

Error Message:
Request must be POST

Stack Trace:
Request must be POST

  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 60, in testPartExecutor
    yield
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 676, in run
    self._callTestMethod(testMethod)
  File "/srv/python3.8/lib/python3.8/unittest/case.py", line 633, in _callTestMethod
    method()
  File "/home/jenkins/workspace/plone-6.0-python-3.8/src/Products.CMFQuickInstallerTool/Products/CMFQuickInstallerTool/tests/test_browser.py", line 102, in test_installProducts_post
    self.browser.post(url, 'products:list=%s&_authenticator=%s' % (
  File "/home/jenkins/.buildout/eggs/cp38/zope.testbrowser-5.5.1-py3.8.egg/zope/testbrowser/browser.py", line 262, in post
    return self.open(url, data)
  File "/home/jenkins/.buildout/eggs/cp38/zope.testbrowser-5.5.1-py3.8.egg/zope/testbrowser/browser.py", line 256, in open
    self._processRequest(url, make_request)
  File "/home/jenkins/.buildout/eggs/cp38/zope.testbrowser-5.5.1-py3.8.egg/zope/testbrowser/browser.py", line 290, in _processRequest
    resp = self.testapp.get(url, **reqargs)
  File "/home/jenkins/.buildout/eggs/cp38/WebTest-2.0.34-py3.8.egg/webtest/app.py", line 327, in get
    return self.do_request(req, status=status,
  File "/home/jenkins/.buildout/eggs/cp38/zope.testbrowser-5.5.1-py3.8.egg/zope/testbrowser/browser.py", line 93, in do_request
    response = super(TestbrowserApp, self).do_request(req, status,
  File "/home/jenkins/.buildout/eggs/cp38/WebTest-2.0.34-py3.8.egg/webtest/app.py", line 623, in do_request
    res = req.get_response(app, catch_exc_info=True)
  File "/home/jenkins/.buildout/eggs/cp38/WebOb-1.8.6-py3.8.egg/webob/request.py", line 1309, in send
    status, headers, app_iter, exc_info = self.call_application(
  File "/home/jenkins/.buildout/eggs/cp38/WebOb-1.8.6-py3.8.egg/webob/request.py", line 1278, in call_application
    app_iter = application(self.environ, start_response)
  File "/home/jenkins/.buildout/eggs/cp38/WebTest-2.0.34-py3.8.egg/webtest/lint.py", line 201, in lint_app
    iterator = application(environ, start_response_wrapper)
  File "/home/jenkins/workspace/plone-6.0-python-3.8/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 38, in wrapped_func
    return func(*args, **kw)
  File "/home/jenkins/workspace/plone-6.0-python-3.8/src/plone.testing/src/plone/testing/_z2_testbrowser.py", line 65, in __call__
    wsgi_result = publish(environ, start_response)
  File "/home/jenkins/.buildout/eggs/cp38/Zope-4.2.1-py3.8.egg/ZPublisher/WSGIPublisher.py", line 338, in publish_module
    response = _publish(request, new_mod_info)
  File "/home/jenkins/.buildout/eggs/cp38/Zope-4.2.1-py3.8.egg/ZPublisher/WSGIPublisher.py", line 248, in publish
    result = mapply(obj,
  File "/home/jenkins/.buildout/eggs/cp38/Zope-4.2.1-py3.8.egg/ZPublisher/mapply.py", line 85, in mapply
    return debug(object, args, context)
  File "/home/jenkins/.buildout/eggs/cp38/Zope-4.2.1-py3.8.egg/ZPublisher/WSGIPublisher.py", line 62, in call_object
    return obj(*args)
  File "<string>", line 3, in installProducts
  File "/home/jenkins/.buildout/eggs/cp38/AccessControl-4.1-py3.8-linux-x86_64.egg/AccessControl/requestmethod.py", line 77, in _curried
    raise Forbidden('Request must be %s' % methodsstr)


More information about the Testbot mailing list