tests/regressiontests/utils/datastructures.py: builtin dict ordering is assumed
|Reported by:||leosoto||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
At the end of the doctest it says:
>>> real_dict.values() ['one', 'second-two']
Which fails on Jython because dict values have not the same ordering as in CPython.
Attached is a simple patch which uses ordered() to keep the check for dict contents without assuming a default ordering.
Change History (6)
Changed 7 years ago by leosoto
comment:1 Changed 7 years ago by Alex
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset