Skip to content

Commit

Permalink
Muck around with traceback formatting changes in the doctests.
Browse files Browse the repository at this point in the history
  • Loading branch information
Rotonen committed Oct 1, 2018
1 parent f81a86b commit abb24e3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions src/plone/testing/publisher.rst
Expand Up @@ -42,8 +42,8 @@ the ``<permission />`` or ``<browser:view />`` directives without loading the ne
... </configure>""")
Traceback (most recent call last):
...
ZopeXMLConfigurationError: File "<string>", line 5.4
ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/zope', u'permission')
ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/zope', u'permission')
...

Layer setup creates a configuration context we can use to load further configuration.::

Expand Down
4 changes: 2 additions & 2 deletions src/plone/testing/zca.rst
Expand Up @@ -230,8 +230,8 @@ Before the test, we cannot use e.g. a ``<utility />`` directive without loading
... </configure>""")
Traceback (most recent call last):
...
ZopeXMLConfigurationError: File "<string>", line 2.4
ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/zope', u'utility')
ConfigurationError: ('Unknown directive', u'http://namespaces.zope.org/zope', u'utility')
...

Layer setup creates a configuration context we can use to load further configuration.::

Expand Down

1 comment on commit abb24e3

@jenkins-plone-org
Copy link

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Rotonen Jenkins CI reporting about code analysis
See the full report here: https://jenkins.plone.org/job/package-plone.testing/97/violations

src/plone/testing/z2.py:98:1: C901 'uninstallProduct' is too complex (15)
src/plone/testing/z2.py:138:19: T000 Todo note found.
src/plone/testing/z2.py:414:5: C901 'Startup.setUpPatches' is too complex (11)
src/plone/testing/z2.py:829:11: T000 Todo note found.

Follow these instructions to reproduce it locally.

Please sign in to comment.