#19940 closed Bug (fixed)
Regression: setup_databases in test.simple.DjangoTestSuiteRunner doesn't handle aliases for 'default'
| Reported by: | Simon Percivall | Owned by: | nobody |
|---|---|---|---|
| Component: | Testing framework | Version: | 1.5-rc-1 |
| Severity: | Normal | Keywords: | |
| Cc: | timograham@… | Triage Stage: | Accepted |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | yes |
| Easy pickings: | no | UI/UX: | no |
Description
Regression caused by 17954.
If there's an alias for the 'default' db, they both get 'default' as test dependency, which causes dependency_ordered() to raise ImproperlyConfigured.
Attachments (2)
Change History (11)
comment:1 by , 13 years ago
| Component: | Uncategorized → Testing framework |
|---|---|
| Type: | Uncategorized → Bug |
comment:2 by , 13 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 12 years ago
| Cc: | added |
|---|---|
| Needs tests: | set |
| Patch needs improvement: | set |
by , 12 years ago
| Attachment: | setup_databases.patch added |
|---|
comment:5 by , 12 years ago
| Needs tests: | unset |
|---|
Thanks, I'm not sure if this will be backported to 1.5.x though. Could you provide a patch against master (some code/files have been moved around there)?
by , 12 years ago
| Attachment: | setup_databases_head.patch added |
|---|
comment:6 by , 12 years ago
I added a patch against master. I do think it'd it's a pity though if it's not applied to 1.5.x. It's an obvious regression, it's non-workaroundable, and it affects only the test framework.
comment:7 by , 12 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Patch no longer applies cleanly and needs a test.