Skip to content
Browse files

fix test, odict.sort sorts by value if not specified other

  • Loading branch information...
1 parent 5cf0916 commit da9f10f143ad227a732e15375c17e387ecd274c0 Robert Niederreiter committed
Showing with 4 additions and 1 deletion.
  1. +4 −1 src/node/ext/zodb/__init__.rst
View
5 src/node/ext/zodb/__init__.rst
@@ -112,7 +112,10 @@ Test OOBTodict::
>>> od2.keys()
['foo', 'bar']
- >>> od2.sort(reverse=True)
+ >>> od2.sort(key=lambda x: x[0])
+ >>> od2
+ OOBTodict([('bar', OOBTodict()), ('foo', OOBTodict())])
+
>>> od2.keys()
['bar', 'foo']

0 comments on commit da9f10f

Please sign in to comment.
Something went wrong with that request. Please try again.