This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

classification
Title: Don't assume that repr of literal dicts are sorted like pprint sorts them.
Type: behavior Stage:
Components: Tests Versions: Python 2.7
process
Status: closed Resolution: fixed
Dependencies: Superseder:
Assigned To: Nosy List: benjamin.peterson, fwierzbicki
Priority: normal Keywords:

Created on 2009-03-30 15:10 by fwierzbicki, last changed 2022-04-11 14:56 by admin. This issue is now closed.

Files
File name Uploaded Description Edit
test_pprint_patch.txt fwierzbicki, 2009-03-30 15:10
Messages (2)
msg84561 - (view) Author: Frank Wierzbicki (fwierzbicki) * (Python committer) Date: 2009-03-30 15:10
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.
msg84563 - (view) Author: Benjamin Peterson (benjamin.peterson) * (Python committer) Date: 2009-03-30 15:15
Fixed in r70712.
History
Date User Action Args
2022-04-11 14:56:47adminsetgithub: 49855
2009-03-30 15:15:59benjamin.petersonsetstatus: open -> closed

nosy: + benjamin.peterson
messages: + msg84563

resolution: fixed
2009-03-30 15:10:02fwierzbickicreate