#8067 closed (fixed)
model_formsets test uses dict literals
| Reported by: | Leo Soto M. | Owned by: | Brian Rosner |
|---|---|---|---|
| Component: | Testing framework | Version: | dev |
| Severity: | Keywords: | jython | |
| Cc: | Triage Stage: | Ready for checkin | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
As seen in the past, dict literals are fragile for doctests, as the key ordering is implementation dependent.
The patch fixes this for model_formsets/models.py
Attachments (1)
Change History (4)
by , 17 years ago
| Attachment: | no_dicts_literal_on_doctests.diff added |
|---|
comment:1 by , 17 years ago
| Owner: | changed from to |
|---|---|
| Status: | new → assigned |
| Triage Stage: | Unreviewed → Ready for checkin |
comment:2 by , 17 years ago
| Resolution: | → fixed |
|---|---|
| Status: | assigned → closed |
Note:
See TracTickets
for help on using tickets.
(In [8178]) Fixed #8067 -- Replaced dict literals in the model_formsets tests with sorted lists of tuples to ensure compatibilty on different implementations of Python. Thanks Leo Soto for the patch.