[issue3332] DocTest and dict sort.
Tarek Ziadé
report at bugs.python.org
Thu Jul 10 16:06:11 CEST 2008
Tarek Ziadé <ziade.tarek at gmail.com> added the comment:
This is not a bug: dict do not guarantee the ordering of the keys, so it
may change on every run.
A good practice is to test a sorted .items() output of your dict in your
doctest.
----------
nosy: +tarek
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3332>
_______________________________________
More information about the Python-bugs-list
mailing list