Don't check the exact error message of exceptions
|Reported by:||anto.cuni@…||Owned by:||nobody|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
django/core/management/commands/syncdb.py checks for the exact error message when catching an ImportError exception.
This test could fail on implementations other than CPython, is they choose to format the error messages slightly differently, as for example PyPy does.
The attacched patch solves this problem.
Change History (8)
Changed 8 years ago by anto.cuni@…
comment:1 Changed 8 years ago by anonymous
- Cc anto.cuni@… added
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
comment:2 Changed 8 years ago by jacob
- Keywords vm-compat added
- Triage Stage changed from Unreviewed to Accepted
comment:4 Changed 8 years ago by fijal
- Resolution fixed deleted
- Status changed from closed to reopened