Opened 14 years ago
Closed 13 years ago
#17959 closed Cleanup/optimization (fixed)
Silence output during GIS tests
| Reported by: | Claude Paroz | Owned by: | nobody |
|---|---|---|---|
| Component: | GIS | Version: | dev |
| Severity: | Normal | Keywords: | test logging |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | no | UI/UX: | no |
Description
Some django.contrib.gis tests outputs "BEGIN... errors/notices ... END" content, because underlying GEOS/GDAL libraries are outputing difficult-to-catch errors. I'm suggesting to use logging to handle this issue. Patch follows.
Attachments (2)
Change History (5)
by , 14 years ago
| Attachment: | 17959-1.diff added |
|---|
comment:1 by , 14 years ago
Note that this patch is using the capture_logging context manager proposed in #17958. It cannot be tested as is without it.
comment:2 by , 13 years ago
| Triage Stage: | Unreviewed → Accepted |
|---|
comment:3 by , 13 years ago
| Resolution: | → fixed |
|---|---|
| Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Use logging to silence test output