#27804 closed Cleanup/optimization (fixed)
Use unittest.subTest() in Django's test suite
Reported by: | Tim Graham | Owned by: | |
---|---|---|---|
Component: | Core (Other) | Version: | dev |
Severity: | Normal | Keywords: | |
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | yes | UI/UX: | no |
Description
With Python 3.4+ support on master, Django's test suite may use unittest.subTest in loops. This makes debugging test failures easier.
Change History (28)
comment:1 Changed 7 years ago by
comment:2 Changed 7 years ago by
Owner: | changed from nobody to Hitesh Bhagchandani |
---|---|
Status: | new → assigned |
comment:4 Changed 7 years ago by
Are you still working on this ticket Hitesh, or can I do some work on it?
comment:5 Changed 7 years ago by
Owner: | changed from Hitesh Bhagchandani to Bruno Alla |
---|
comment:12 Changed 6 years ago by
Owner: | Bruno Alla deleted |
---|---|
Status: | assigned → new |
comment:14 Changed 6 years ago by
Owner: | set to Marcin Baranowski |
---|---|
Status: | new → assigned |
comment:16 Changed 6 years ago by
Is this still being worked on? I could continue this and for my first contribution.
comment:18 Changed 6 years ago by
Owner: | Marcin Baranowski deleted |
---|---|
Status: | assigned → new |
comment:19 Changed 6 years ago by
Owner: | set to Ariel Ferdman |
---|---|
Status: | new → assigned |
comment:20 Changed 6 years ago by
Owner: | Ariel Ferdman deleted |
---|---|
Status: | assigned → new |
comment:21 Changed 6 years ago by
Resolution: | → fixed |
---|---|
Status: | new → closed |
There may be some additional places to update but we can update them as they are spotted rather than leaving this ticket open.
Note: See
TracTickets for help on using
tickets.
I made an example change in the second commit of this PR.