Skip to content

Commit

Permalink
Better fix for linting long lines with passing tests on py27
Browse files Browse the repository at this point in the history
  • Loading branch information
janjaapdriessen committed Jun 10, 2020
1 parent 4b52b7c commit 273ebef
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 25 deletions.
28 changes: 8 additions & 20 deletions src/grokcore/site/tests/functional/utility/local.py
Expand Up @@ -57,50 +57,38 @@
>>> component.getUtility(IFireplace)
Traceback (most recent call last):
...
zope.interface.interfaces.ComponentLookupError: (<InterfaceClass
grokcore.site.tests.functional.utility.local.IFireplace>, '')
zope.interface.interfaces.ComponentLookupError: (<InterfaceClass grokcore.site.tests.functional.utility.local.IFireplace>, '')
>>> component.getUtility(IClub)
Traceback (most recent call last):
...
zope.interface.interfaces.ComponentLookupError:
(<InterfaceClass grokcore.site.tests.functional.utility.local.IClub>, '')
zope.interface.interfaces.ComponentLookupError: (<InterfaceClass grokcore.site.tests.functional.utility.local.IClub>, '')
>>> component.getUtility(IClub, name='spiky')
Traceback (most recent call last):
...
zope.interface.interfaces.ComponentLookupError:
(<InterfaceClass grokcore.site.tests.functional.utility.local.IClub>,
'spiky')
zope.interface.interfaces.ComponentLookupError: (<InterfaceClass grokcore.site.tests.functional.utility.local.IClub>, 'spiky')
>>> component.getUtility(IMammoth)
Traceback (most recent call last):
...
zope.interface.interfaces.ComponentLookupError:
(<InterfaceClass grokcore.site.tests.functional.utility.local.IMammoth>,
'')
zope.interface.interfaces.ComponentLookupError: (<InterfaceClass grokcore.site.tests.functional.utility.local.IMammoth>, '')
>>> component.getUtility(IMammoth, name='tiger')
Traceback (most recent call last):
...
zope.interface.interfaces.ComponentLookupError:
(<InterfaceClass grokcore.site.tests.functional.utility.local.IMammoth>,
'tiger')
zope.interface.interfaces.ComponentLookupError: (<InterfaceClass grokcore.site.tests.functional.utility.local.IMammoth>, 'tiger')
>>> component.getUtility(IPainting, name='blackandwhite')
Traceback (most recent call last):
...
zope.interface.interfaces.ComponentLookupError:
(<InterfaceClass grokcore.site.tests.functional.utility.local.IPainting>,
'blackandwhite')
zope.interface.interfaces.ComponentLookupError: (<InterfaceClass grokcore.site.tests.functional.utility.local.IPainting>, 'blackandwhite')
>>> component.getUtility(IPainting, name='color')
Traceback (most recent call last):
...
zope.interface.interfaces.ComponentLookupError:
(<InterfaceClass grokcore.site.tests.functional.utility.local.IPainting>,
'color')
"""
zope.interface.interfaces.ComponentLookupError: (<InterfaceClass grokcore.site.tests.functional.utility.local.IPainting>, 'color')
""" # noqa: E501
import grokcore.site
from zope import interface
import persistent
Expand Down
7 changes: 2 additions & 5 deletions src/grokcore/site/tests/functional/utility/subclass.py
Expand Up @@ -38,9 +38,7 @@
>>> painting = component.getUtility(IPainting)
Traceback (most recent call last):
...
zope.interface.interfaces.ComponentLookupError:
(<InterfaceClass grokcore.site.tests.functional.utility.subclass.IPainting>,
'')
zope.interface.interfaces.ComponentLookupError: (<InterfaceClass grokcore.site.tests.functional.utility.subclass.IPainting>, '')
This works various levels of inheritance deep:
Expand All @@ -64,8 +62,7 @@
>>> painting = component.getUtility(IPainting)
>>> great_painting = component.getUtility(IPainting, 'great')
>>> bad_painting = component.getUtility(IPainting, 'bad')
"""
""" # noqa: E501
import grokcore.site
from zope import interface

Expand Down

0 comments on commit 273ebef

Please sign in to comment.