Skip to content

Commit 667b799

Browse files
committed
pypy25 defaults to ordered dicts, fix doctest
1 parent 3983780 commit 667b799

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

elasticgit/utils.py

+3-2
Original file line numberDiff line numberDiff line change
@@ -12,9 +12,10 @@ def introspect_properties(model_class):
1212
...
1313
>>> from elasticgit.utils import introspect_properties
1414
>>>
15-
>>> introspect_properties(TestModel) # doctest: +ELLIPSIS
16-
{'field': {'type': 'string'}, '_version': {'type': 'nested', ...}
15+
>>> sorted(introspect_properties(TestModel).keys()) # doctest: +ELLIPSIS
16+
['_version', 'field', 'uuid']
1717
>>>
18+
1819
"""
1920
return dict([
2021
(field_name, field_object.mapping)

0 commit comments

Comments
 (0)