[issue5605] Don't assume that repr of literal dicts are sorted like pprint sorts them.

Frank Wierzbicki report at bugs.python.org
Mon Mar 30 17:10:04 CEST 2009


New submission from Frank Wierzbicki <fwierzbicki at gmail.com>:

test_same_as_repr in test_pprint.py assumes repr of literal dict {5:6,
7:8} will be ordered.  This definitely is not the case for Jython, and
the comments above the test appear to indicate that it is not a
guarantee of CPython either.

----------
components: Tests
files: test_pprint_patch.txt
messages: 84561
nosy: fwierzbicki
severity: normal
status: open
title: Don't assume that repr of literal dicts are sorted like pprint sorts them.
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file13471/test_pprint_patch.txt

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5605>
_______________________________________


More information about the Python-bugs-list mailing list