Skip to content

Commit

Permalink
Simplify sorting keys
Browse files Browse the repository at this point in the history
  • Loading branch information
jamadden committed Apr 26, 2017
1 parent 7ae0b8e commit 76fc0df
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/zope/app/form/tests/test_utility.py
Expand Up @@ -17,7 +17,9 @@
"""

import doctest
import zope.security.checker
# XXX: Apparently unused imports that linters warn about
# are probable used in docstring doctests.
# pylint:disable=unused-import
from zope.interface import Interface, implementer
from zope.component import testing
from zope.component.interfaces import ComponentLookupError
Expand Down Expand Up @@ -1061,7 +1063,7 @@ def test_typical(self):
The result of getWidgetsData is a map of field names to widget values.
>>> keys = list(result.keys()); keys.sort(); keys
>>> sorted(result.keys())
['bar', 'foo']
>>> result['foo']
'Input for foo'
Expand Down

0 comments on commit 76fc0df

Please sign in to comment.